void Start() { if (Instance == null) { Instance = this; } SetSkyboxTo(PregameSkyboxDefault); }
public override void Finish() { if (nextLevelType != LevelType.Zombies) { zombieMover.isSpawnActive = false; zombieMover.isMoveActive = false; SkyboxChanger.NightToDay(false); } }
void Start() { instance = this; light.intensity = 1.08f; transitionStartLightIntensity = 1.08f; daySkyColor = skybox.GetColor("_Tint"); fogDayColor = RenderSettings.fogColor; colorParamId = Shader.PropertyToID("_Color"); //Time.timeScale = 16; }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }
void Start() { motor = transform.GetComponent <AnimalMotor>(); manager = GameManager.instance; skybox = SkyboxChanger.instance; if (focus != null) { SetFocus(focus); } }
public SkyboxChanger() { instance = this; }
public override void Start() { zombieMover.isMoveActive = true; zombieMover.isSpawnActive = true; SkyboxChanger.DayToNight(lastlLevel.levelType == LevelType.Zombies); }
void Start() { skybox = FindObjectOfType <SkyboxChanger>(); PlayerOneArmy = new Dictionary <Vector3, Unit>(); PlayerTwoArmy = new Dictionary <Vector3, Unit>(); }
public override void Finish() { zombieMover.isSpawnActive = false; zombieMover.isMoveActive = false; SkyboxChanger.NightToDay(); }
public override void Start() { zombieMover.isMoveActive = true; SkyboxChanger.DayToNight(); }