Esempio n. 1
0
 void Start()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     SetSkyboxTo(PregameSkyboxDefault);
 }
Esempio n. 2
0
 public override void Finish()
 {
     if (nextLevelType != LevelType.Zombies)
     {
         zombieMover.isSpawnActive = false;
         zombieMover.isMoveActive  = false;
         SkyboxChanger.NightToDay(false);
     }
 }
Esempio n. 3
0
    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);
     }
 }
Esempio n. 5
0
    void Start()
    {
        motor   = transform.GetComponent <AnimalMotor>();
        manager = GameManager.instance;
        skybox  = SkyboxChanger.instance;

        if (focus != null)
        {
            SetFocus(focus);
        }
    }
Esempio n. 6
0
 public SkyboxChanger()
 {
     instance = this;
 }
Esempio n. 7
0
 public override void Start()
 {
     zombieMover.isMoveActive  = true;
     zombieMover.isSpawnActive = true;
     SkyboxChanger.DayToNight(lastlLevel.levelType == LevelType.Zombies);
 }
Esempio n. 8
0
 void Start()
 {
     skybox        = FindObjectOfType <SkyboxChanger>();
     PlayerOneArmy = new Dictionary <Vector3, Unit>();
     PlayerTwoArmy = new Dictionary <Vector3, Unit>();
 }
Esempio n. 9
0
 public override void Finish()
 {
     zombieMover.isSpawnActive = false;
     zombieMover.isMoveActive  = false;
     SkyboxChanger.NightToDay();
 }
Esempio n. 10
0
 public override void Start()
 {
     zombieMover.isMoveActive = true;
     SkyboxChanger.DayToNight();
 }