コード例 #1
0
ファイル: Mine.cs プロジェクト: KAkerstrom/MonoCoopGame
        public void Destroy(GameState gameState, Player player = null)
        {
            TileDestroyed?.Invoke(this, player);

            Point     point     = new Point(GridPos.X, GridPos.Y);
            Explosion explosion = new Explosion(Utility.R.Next(), radius, point, Owner, gameState);

            gameState.AddEntity(explosion);
        }
コード例 #2
0
ファイル: PushBlock.cs プロジェクト: KAkerstrom/MonoCoopGame
 public void Destroy(GameState gameState, Player player = null)
 {
     TileDestroyed?.Invoke(this, player);
 }