void WaitingAnim() { StartCoroutine(WaitSecond()); UpCur.GetComponent <Animator>().enabled = false; DownCur.GetComponent <Animator>().enabled = false; LeftCur.GetComponent <Animator>().enabled = false; RightCur.GetComponent <Animator>().enabled = false; }
void Update() { if (Input.GetButtonDown("Fire1")) { UpCur.GetComponent <Animator>().enabled = true; DownCur.GetComponent <Animator>().enabled = true; LeftCur.GetComponent <Animator>().enabled = true; RightCur.GetComponent <Animator>().enabled = true; WaitingAnim(); StartCoroutine(WaitSecond()); } }