Esempio n. 1
0
    private void Awake()
    {
        instance = this;
        skybox   = RenderSettings.skybox;
        if (!lightSource)
        {
            lightSource = FindObjectOfType <Light>();
        }

        if (baseLightColour == Color.clear)
        {
            baseLightColour = lightSource.color;
        }
        if (baseLightIntensity == -1)
        {
            baseLightIntensity = lightSource.intensity;
        }
    }
Esempio n. 2
0
 public override void Initialise()
 {
     base.Initialise();
     skybox = SkyboxMaster.instance;
 }
Esempio n. 3
0
 protected override void Start()
 {
     base.Start();
     skybox = SkyboxMaster.instance;
 }