Forum begins after the advertisement:
-
My Bronze Supporter (Patron)
::Current Code:
IEnumerator Death()
{
pState.alive = false;
Time.timeScale = 1f;
GameObject _bloodSpurtParticles = Instantiate(bloodSpurt, transform.position, Quaternion.identity);
Destroy(_bloodSpurtParticles, 1.5f);
anim.SetTrigger("Death");
yield return new WaitForSeconds(0.9f);
}
Console is returning an error: not all code paths return a value.
help
::Your code doesn’t seem to have anything wrong. Try adding some spaces after your yield return statement, save and try again.