Example #1
0
    void InfectNeighbour()
    {
        Apartment neighbour = null;

        switch (disaster.type)
        {
        case Disaster.Type.Fire:
            neighbour = GameManager.buildingGenerator.GetUpperNeighbour(this);

            break;

        case Disaster.Type.Water:
            break;

        case Disaster.Type.Rat:
            break;
        }

        if (neighbour != null)
        {
            neighbour.ForceDisaster(disaster.type);
        }
    }