void Awake() { this.movement = GetComponent <CharMovement>(); this.movement.WalkSpeed = 4f; this.Scent = GetComponent <ObjectScent>(); this.witchSprite = GetComponentInChildren <WitchSprite>(); this.animator = GetComponentInChildren <Animator>(); this.originalController = animator.runtimeAnimatorController; }
private void StepFollowing(ObjectScent scent) { var scentDirection = scent.GetDirectionToFollow(this.hunterMovement.Cell); if (!this.hunterMovement.CurrentDirection.HasValue || scentDirection != this.hunterMovement.CurrentDirection.Value) { this.hunterMovement.Move(scentDirection); } }
void Awake() { this.bang = GetComponentInChildren <HunterBang>(); this.grid = GetComponentInParent <WalkingGrid>(); this.witchScent = this.grid.Witches[0].Scent; this.cauldronScent = this.grid.Cauldron.Scent; this.hunter = GetComponent <HunterActions>(); this.hunterMovement = GetComponent <CharMovement>(); this.hunterSprite = GetComponentInChildren <HunterSprite>(); }
void Awake() { this.Scent = GetComponent <ObjectScent>(); }