public void SetPlayerFollowBehaviour(IPlayerFollowBehaviour behaviour) { this.playerFollowBehaviour = behaviour; }
public LookForPlayerBehaviour(IPlayerFollowBehaviour decoratedBehaviour) { this.decoratedBehaviour = decoratedBehaviour; }
/// <summary> /// A Enemey with this behaviour will search the player after he lost track of him /// </summary> /// <param name="decoratedBahaviour"></param> /// <param name="searchAreaSize">How far away from the player the enemy will search at max</param> public SearchForPlayerBehaviour(IPlayerFollowBehaviour decoratedBahaviour, int searchAreaSize) { this.decoratedBahaviour = decoratedBahaviour; this.searchAreaSize = searchAreaSize; }