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