示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        outliner = GetComponent <Outline>();
        player   = PlayerMovement.FindObjectOfType <PlayerMovement>();

        cycle = DayNightCycle.FindObjectOfType <DayNightCycle>();
    }
示例#2
0
    private void OnLevelWasLoaded(int level)
    {
        meteoManager = cloudManager.FindObjectOfType <cloudManager>();

        persoT = PlayerMovement.FindObjectOfType <PlayerMovement>();

        cycle = DayNightCycle.FindObjectOfType <DayNightCycle>();
    }
示例#3
0
    //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>();
    }
示例#4
0
    // 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();
    }