Beispiel #1
0
    public void NewDoma()
    {
        // Pobierz referencje do wszystkich obiektów
        var allInstances = domaManager.GetReferencesToInstances();

        // Usuń wszystkie instancje obiektów z poprzedniego zestawu || Resztą zajmie się GC
        domaManager.RemoveAllInstances(allInstances);

        // Zastąp istniejący AppSystem nowym PUSTYM
        currentStatusDoma.appSystem = new AppSystem();

        // Ustaw domyślny poziom
        domaManager.SetActiveFloorById(0);
    }
Beispiel #2
0
 private void dropDownValueChangedHandler(TMP_Dropdown target)
 {
     domaManager.SetActiveFloorById(target.value);
     currentStatusDoma.ShowWalls2dOnFloors(new Guid[] { currentStatusDoma.activeFloor.Id });
 }