public void Act() { Instantiate(); MapMover.Move(_map); CleanDead(); CheckAndActConditions(); MapRedrawer.Redraw(_map); }
void GetObj() { try { Hero = GameObject.FindGameObjectWithTag("Player"); HeroAnim = Hero.GetComponent <Animator>(); MM = Map.GetComponent <MapMover>(); LeftArmPunch = GameObject.Find("PunchAnimL").GetComponent <Animator>(); RightArmPunch = GameObject.Find("PunchAnimR").GetComponent <Animator>(); } catch { } }
// Start is called before the first frame update void Start() { PlateName = gameObject.name; MM = GameObject.FindGameObjectWithTag("MainMap").GetComponent <MapMover>(); }