// Start is called before the first frame update void Start() { outliner = GetComponent <Outline>(); player = PlayerMovement.FindObjectOfType <PlayerMovement>(); cycle = DayNightCycle.FindObjectOfType <DayNightCycle>(); }
private void OnLevelWasLoaded(int level) { meteoManager = cloudManager.FindObjectOfType <cloudManager>(); persoT = PlayerMovement.FindObjectOfType <PlayerMovement>(); cycle = DayNightCycle.FindObjectOfType <DayNightCycle>(); }
//sauvegarde a la fin de: pot, item, dialogue // Start is called before the first frame update void Start() { DontDestroyOnLoad(this.gameObject); meteoManager = cloudManager.FindObjectOfType <cloudManager>(); persoT = PlayerMovement.FindObjectOfType <PlayerMovement>(); cycle = DayNightCycle.FindObjectOfType <DayNightCycle>(); }
// Start is called before the first frame update void Start() { skyColor = SkyboxModule.FindObjectOfType <SkyboxModule>(); sunColor = DayNightCycle.FindObjectOfType <DayNightCycle>(); sunIntensityBase = sunColor.sunBaseIntensity; sunIntensityVariationBase = sunColor.sunVariation; for (int i = 0; i < cloudRoundSpeedDefault.Length; i++) { cloudRoundSpeedDefault[i] = cloudRoundSpeed[i]; } tableauNuage = new List <Transform>(); for (int i = 0; i < cloudRound.Length; i++) { foreach (Transform go in cloudRound[i]) { tableauNuage.Add(go.transform); } } meteoChange(); }