Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Getting errors?

$
0
0
So I am trying to access an Animation in my script, wait for a moment, then have the other animation play. It seems to work fine, but I am it is saying I have unexpected symbols- "Unexpected symbol )" And then it has three other errors with that message. This is my code below- any help would be appreciated! void OpenTheDoor (){ TheDoor.GetComponent<"Animator">().enabled=true; yield return new WaitForSeconds(1); TheDoor.GetComponent<"Animator">().enabled=false; yield return new WaitForSeconds(5); TheDoor.GetComponent<"Animator">().enabled=true; yield return new WaitForSeconds(1); TheDoor.GetComponent<"Animator">().enabled=false; } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>