コード例 #1
0
ファイル: PlayerBehaviour.cs プロジェクト: Kripner/yolo
 public PlayerBehaviour(bool isGood, BucketList todoList, int spriteNum, Entity entity) : base(entity)
 {
     IsGood             = isGood;
     TodoList           = todoList;
     HasGroceries       = false;
     orientationManager = new SpriteOrientationManager(spriteNum, Entity);
 }
コード例 #2
0
ファイル: Game.cs プロジェクト: Kripner/yolo
        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);
        }