示例#1
0
    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;
    }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     timer1  = 0.0f;
     current = attackstate.idle;
 }