public Follower2DBehavior(Entity entity, FollowTypes followType) { this.followedTranform = entity.FindComponent<Transform2D>(); this.followType = followType; this.lastFollowPosition = Vector2.Zero; if (this.lastFollowPosition == null) { throw new NotImplementedException("The Transform2D component must be used by the entity to follow"); } }
public Follower2DBehavior(Entity entity, FollowTypes followType) { this.followedTranform = entity.FindComponent <Transform2D>(); this.followType = followType; this.lastFollowPosition = Vector2.Zero; if (this.lastFollowPosition == null) { throw new NotImplementedException("The Transform2D component must be used by the entity to follow"); } }