Exemplo n.º 1
0
        internal void BanzaiStart()
        {
            if (banzaiStarted)
                return;
            room.GetGameManager().StartGame();
            floorMap = new byte[room.GetGameMap().Model.MapSizeY, room.GetGameMap().Model.MapSizeX];
            field = new GameField(floorMap, true);
            for (int i = 1; i < 5; i++)
            {
                room.GetGameManager().Points[i] = 0;
            }

            foreach (RoomItem tile in banzaiTiles.Values)
            {
                tile.ExtraData = "1";
                tile.value = 0;
                tile.team = Team.none;
                tile.UpdateState();
            }

            room.GetRoomItemHandler().mFloorItems.QueueDelegate(new onCycleDoneDelegate(ResetTiles));
            banzaiStarted = true;
        }
Exemplo n.º 2
0
        internal void Destroy()
        {
            banzaiTiles.Clear();
            pucks.Clear();
            Array.Clear(floorMap, 0, floorMap.Length);
            field.destroy();

            room = null;
            banzaiTiles = null;
            pucks = null;
            floorMap = null;
            field = null;
        }