예제 #1
0
 void Start()
 {
     player = FindObjectOfType<HeroMove>();
 }
예제 #2
0
 IEnumerator cd(HeroMove hm)
 {
     //hm.EnableMove = false;
     yield return(new WaitForSeconds(1f));
     //hm.EnableMove = true;
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     HM     = Hero.GetComponent <HeroMove>();
     HeroRB = Hero.GetComponent <Rigidbody2D>();
     RB2D   = GetComponent <Rigidbody2D>();
 }