Can anyone please help me, it says
‘Identifier expected’
Can anyone help me?
Here is the script below:
using System;
using UnityEngine;
using UnityEngine.AI;
using static.Random;
// Token: 0x0200003B RID: 59
public class GoldenBaldiScript : MonoBehaviour
{
public Vector3 partyEvent;
// Token: 0x06000145 RID: 325 RVA: 0x00009088 File Offset: 0x00007288
private void Start()
{
this.agent = base.GetComponent<NavMeshAgent>();
this.audioDevice = base.GetComponent<AudioSource>();
this.Wander();
}
// Token: 0x06000146 RID: 326 RVA: 0x000090A8 File Offset: 0x000072A8
private void Update()
{
if (this.coolDown > 0f)
{
this.coolDown -= 1f * Time.deltaTime;
}
}
// Token: 0x06000147 RID: 327 RVA: 0x00009118 File Offset: 0x00007318
public void FixedUpdate()
{
if (this.agent.velocity.magnitude <= 1f & this.coolDown <= 0f)
{
if (pe.party)
{
targetParty();
}
else
{
wander;
}
}
}
// Token: 0x06000148 RID: 328 RVA: 0x0000916F File Offset: 0x0000736F
private void Wander()
{
this.wanderer.GetNewTarget();
this.agent.SetDestination(this.wanderTarget.position);
this.coolDown = 1f;
}
private void TargetParty()
{
agent.SetDestination(partyEvent);
coolDown= 1f;
}
// Token: 0x06000149 RID: 329 RVA: 0x000091A0 File Offset: 0x000073A0
private void OnTriggerEnter(Collider collider)
{
if (collider.CompareTag("Player"))
{
float num = Random.Range(0f, 1f);
if (num >= 0.5f)
{
this.gc.LoseItem(Random.Range(0, 4));
this.baldi.Hear(this.player.transform.position, 3f);
return;
}
if (num <= 0.25f)
{
this.player.position = new Vector3(this.baldi.transform.position.x, 4f, this.baldi.transform.position.z) + this.baldi.transform.forward * 20f;
this.audioDevice.PlayOneShot(this.aud_Teleport);
}
}
}
// Token: 0x0600014A RID: 330 RVA: 0x000022AA File Offset: 0x000004AA
public GoldenBaldiScript()
{
}
// Token: 0x04000242 RID: 578
public BaldiScript baldi;
// Token: 0x04000244 RID: 579
public GameControllerScript gc;
// Token: 0x04000245 RID: 580
public AILocationSelectorScript wanderer;
// Token: 0x04000246 RID: 581
public Transform wanderTarget;
// Token: 0x04000247 RID: 582
public Transform player;
// Token: 0x04000248 RID: 583
public Transform GoldenBaldiStandPlace;
// Token: 0x0400024A RID: 585
private NavMeshAgent agent;
// Token: 0x0400024B RID: 586
public AudioSource audioDevice;
// Token: 0x0400024C RID: 587
public AudioClip aud_Teleport;
// Token: 0x0400024D RID: 588
public float coolDown;
// Token: 0x0400024E RID: 589
public Transform Baldi;
}
– andrew-lukasikwander;is a meaningless line.