Example #1
0
    public void Activate(float _delay = 0.0f)
    {
        //GameObject obj;
        if (!isActive)
        {
            //isActive = true;
            switch (type)
            {
            case TileType.Baril:    // Baril
            case TileType.Turret:   // Turret
            case TileType.Liquid:   // Flaming liquid
            case TileType.Hole:     // Hole
                item.Activate(_delay);

                break;

            default:
                break;
            }
        }
    }