Esempio n. 1
0
    void Start()
    {
        if (nextRoom != null)
        {
            nextRepairRoom = nextRoom.GetComponent <SCR_RepairRoom>();
        }

        if (isStartRoom)
        {
            Activate();
        }
    }
Esempio n. 2
0
    // Start is called before the first frame update
    public void Start()
    {
        repairRoom = room.GetComponent <SCR_RepairRoom>();

        var roomUnits = repairRoom.repairUnits;

        if (roomUnits == null)
        {
            repairRoom.repairUnits = new List <KeyValuePair <int, bool> >();
        }

        Id = roomUnits.Count + 1;

        repairRoom.repairUnits.Add(new KeyValuePair <int, bool>(Id, false));
    }