Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Jul 14, 2016 at 10:02 PM by Hellium for the following reason:

Compiling error

avatar image
-1
Question by importguru88 · Jul 14, 2016 at 09:51 PM · scripting problemerrorienumerator

(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();
 
                 
             }
          
Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tanoshimi · Jul 14, 2016 at 09:57 PM 0
Share

And on what line does the error occur...?

avatar image importguru88 tanoshimi · Jul 14, 2016 at 10:02 PM 0
Share

Its 353 , 27 .

I can post the script it's a long script .

avatar image importguru88 tanoshimi · Jul 14, 2016 at 10:03 PM 0
Share

if you want to post the script.

avatar image Hellium · Jul 14, 2016 at 10:01 PM 0
Share

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

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

66 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

IEnumerator, Unexpected symbol? 3 Answers

ERROR 15,36 An object reference is required to access non-static members UnityEngine.Transform.Find(string) 1 Answer

An instance of type 'UnityEngine.Behaviour' is required to access non static member 'enabled'. 0 Answers

Foreach in coroutine (Really need a reply!) 1 Answer

How to make a number higher than Quintillion? (1000000000000000000) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges