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

Health.cs(331,22): error CS1624: The body of `Opsive.ThirdPersonController.Health.DieLocal(UnityEngine.Vector3, UnityEngine.Vector3)' cannot be an iterator block because `void' is not an iterator interface type

$
0
0
I have legacy animations . I try to make the death animation play late because of the animation frame is not keep up when its deactivating the object. I need to start a start a Coroutine some where on this network health script. The script is long . I will only show you the codes where the errors are at . I try to code and I gotten two of the same errors : Assets/Third Person Controller/Scripts/Health.cs(331,22): error CS1624: The body of `Opsive.ThirdPersonController.Health.DieLocal(UnityEngine.Vector3, UnityEngine.Vector3)' cannot be an iterator block because `void' is not an iterator interface type Assets/Third Person Controller/Scripts/Health.cs(56,21): error CS1624: The body of `Opsive.ThirdPersonController.Health.StartSinking()' cannot be an iterator block because `void' is not an iterator interface type public void StartSinking() { isSinking = true; print("Starting " + Time.time); yield return StartCoroutine(WaitAndPrint(2.0F)); print("Done " + Time.time); } // Deactivate the object if requested. if (m_DeactivateOnDeath) { Scheduler.Schedule(m_DeactivateOnDeathDelay, Deactivate); yield return null (.05); this.animation.Play("die"); GetComponent().Play(); }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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