コード例 #1
0
        private void explode()
        {
            GameBoard.explodeBomb(pos);
            explodeInDir(1, 0);
            explodeInDir(0, 1);
            explodeInDir(-1, 0);
            explodeInDir(0, -1);
            square.setState(SquareState.Empty);
            BombermanGameStateUpdater.addNewAction(new BoardAction(ActionType.BombExplosion, ID, null));
            BombermanGameStateUpdater.removeObj(this as BombermanMapObject);

            if (owner != null)
            {
                owner.placedBombExplode();
            }
            Destroy(gameObject);
        }
コード例 #2
0
 public static void playerDied(PlayerController p)
 {
     singleton.players.Remove(p);
     BombermanGameStateUpdater.addNewAction(new BoardAction(ActionType.PlayerDeath, p.ID, p.getFloatPos()));
     BombermanGameStateUpdater.removeObj(p as BombermanMapObject);
 }