Compiling error
(353,27): error CS1525: Unexpected symbol `(', expecting `)', `,', `;', `[', or `='
I am trying to play animation late . I am getting errors. I am doing coroutines on this network health script . When the gameobject deactivates , the animation doesn't play . The gameobject just disappear when I kill the enemy up close to the player and the move animation continues to play during enemy vanishing.
Here is what I got for code .
public void Start()
{
StartCoroutine(Go(5f));
}
IEnumerator Go(float wait)
{
if (m_DeactivateOnDeath)
Scheduler.Schedule(m_DeactivateOnDeathDelay, Deactivate);
yield return new WaitForSeconds(5f);
this.GetComponent<Animation>().Play("die");
GetComponent<AudioSource>().Play();
}
Its 353 , 27 .
I can post the script it's a long script .
FAQ :
Some reasons for getting a post rejected:
Asking us to fix your code: more than likely, you simply need to get a better understanding of basic program$$anonymous$$g. Having a look at the Scripting tutorials on the Learn page will help you become more familiar with scripting in Unity
Posting about a specific compiling error or NullReferenceException: there is a myriad of these questions with answers already, have a look at those posts to get hints on what could possibly be your issue