Пример #1
0
        void TileDie(MapSystem.Tile _tile)
        {
            TileDeathEvent tileDeathEventInfo = new TileDeathEvent();

            tileDeathEventInfo.Description = "Actor " + gameObject.name + " has died.";
            tileDeathEventInfo.tile_go     = gameObject;
            tileDeathEventInfo.FireEvent();

            Destroy(gameObject);
        }