示例#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>();
 }