Example #1
0
 void OnMouseDown()
 {
     if (targetSky)
     {
         manager.BlendToGlobalSky(targetSky);
     }
 }
Example #2
0
 void setSky(int index)
 {
     currentSky = index;
     mset.SkyManager manager = mset.SkyManager.Get();
     if (manager)
     {
         manager.BlendToGlobalSky(skies[currentSky], 1f);
     }
 }
Example #3
0
 // Update is called once per frame
 void Update()
 {
     if ((Time.time - blendStamp) > blendTime + waitTime)
     {
         currSky    = (currSky + 1) % skyList.Length;
         blendStamp = Time.time;
         manager.BlendToGlobalSky(skyList[currSky], blendTime);
     }
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     manager = mset.SkyManager.Get();
     manager.BlendToGlobalSky(skyList[currSky], blendTime);
     blendStamp = Time.time;
 }