コード例 #1
0
ファイル: SmallHeart.cs プロジェクト: mp1011/Simple2DGame
 void IPrize.OnCollected(ICanGetPrizes player)
 {
     player.DamageHandler.Hitpoints++;
 }
コード例 #2
0
ファイル: Coin.cs プロジェクト: mp1011/Simple2DGame
 void IPrize.OnCollected(ICanGetPrizes player)
 {
     player.Score += 25;
     player.Coins++;
 }
コード例 #3
0
ファイル: ShopItem.cs プロジェクト: mp1011/Simple2DGame
 protected override void OnItemSelected(ICanGetPrizes player)
 {
 }
コード例 #4
0
ファイル: ShopItem.cs プロジェクト: mp1011/Simple2DGame
 protected override void OnItemSelected(ICanGetPrizes player)
 {
     player.HasBetterAttack = true;
 }
コード例 #5
0
ファイル: ShopItem.cs プロジェクト: mp1011/Simple2DGame
        protected override void OnItemSelected(ICanGetPrizes player)
        {
            var hp = player.DamageHandler.Hitpoints;

            player.DamageHandler.Hitpoints = new BoundedInteger(hp.GetMax() + 2);
        }
コード例 #6
0
ファイル: ShopItem.cs プロジェクト: mp1011/Simple2DGame
 protected abstract void OnItemSelected(ICanGetPrizes player);