private IEnumerator attackylw() { current = attackstate.attacking; GameObject yellowcream = (GameObject)Instantiate(yellowscream1, spawn.position, spawn.rotation); //current = attackstate.attacking; yield return(new WaitForSeconds(0.25f)); current = attackstate.idle; }
// Start is called before the first frame update void Start() { timer1 = 0.0f; current = attackstate.idle; }