public PlayerBehaviour(bool isGood, BucketList todoList, int spriteNum, Entity entity) : base(entity) { IsGood = isGood; TodoList = todoList; HasGroceries = false; orientationManager = new SpriteOrientationManager(spriteNum, Entity); }
private Entity CreatePlayer(Vector3 pos) { Entity player = new Entity(ctx); var bucketList = new BucketList(new List <BucketListItem>()); bucketList.FillBucketList(playerIsGood); player.Behavior = new PlayerBehaviour(playerIsGood, bucketList, 1, player); player.Collider = new CircleCollider(player, true, .1f); player.Position = pos; return(player); }