Exemplo n.º 1
0
 void WaitingAnim()
 {
     StartCoroutine(WaitSecond());
     UpCur.GetComponent <Animator>().enabled    = false;
     DownCur.GetComponent <Animator>().enabled  = false;
     LeftCur.GetComponent <Animator>().enabled  = false;
     RightCur.GetComponent <Animator>().enabled = false;
 }
Exemplo n.º 2
0
 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());
     }
 }