public void Awake() { this.movable = GetComponent <IMovable>(); this.spriteSorter = GetComponent <SpriteSorter>(); this.cat = GetComponent <Cat>(); this.human = GetComponent <Human>(); this.movable.StartedMoving += Movable_OnStartedMoving; this.movable.StoppedMoving += Movable_OnStartedMovingOnStoppedMoving; }
public void Awake() { this.spriteSorter = GetComponent <SpriteSorter>(); this.walkAI = GetComponent <WalkAI>(); this.attackAI = GetComponent <AttackAI>(); this.health = GetComponent <Health>(); if (this.deity != null) { this.deity.AddCat(this); } }