Beispiel #1
0
        private void InitializeManagers()
        {
            Debug.Log("Initializing managers...");

            DateTimeManager.SetMode(configClock.Clock_Mode);

            AmmunationManager.CreateAmmunations();
            if (!configBlips.Show_Ammunations)
            {
                AmmunationManager.HideAmmunationBlips();
            }

            AtmManager.CreateATMs();
            if (!configBlips.Show_Atm)
            {
                AtmManager.HideATMBlips();
            }

            DoorManager.CreateDoors();
            if (configSettings.Unlock_All_Doors)
            {
                DoorManager.UnlockAll();
            }

            HospitalManager.CreateDefaultHospitalBlips();
            if (!configBlips.Show_Hospitals)
            {
                HospitalManager.HideHospitalBlips();
            }
            if (configSettings.Hospital_Spawn_OnDeath)
            {
                HospitalManager.EnableAllHospitals();
            }
            else
            {
                HospitalManager.DisableAllHospitals();
            }

            PoliceStationManager.CreateDefaultPoliceStationBlips();
            if (!configBlips.Show_PoliceStations)
            {
                PoliceStationManager.HidePoliceStationBlips();
            }
            if (configSettings.PoliceStation_Spawn_OnArrest)
            {
                PoliceStationManager.EnableAllPoliceStations();
            }
            else
            {
                PoliceStationManager.DisableAllPoliceStations();
            }

            StoreManager.CreateStores();
            if (!configBlips.Show_Stores)
            {
                StoreManager.HideStoreBlips();
            }
        }