Exemplo n.º 1
0
 void Awake()
 {
     // just initialize the controller...
     controller = gameObject.GetComponent <StelController>();
     if (controller == null)
     {
         Debug.LogWarning("StelKeyboardTriggers: Cannot find StelController! controller not initialized");
     }
     streamingSkybox = gameObject.GetComponent <StreamingSkybox>();
     if (streamingSkybox == null)
     {
         Debug.LogWarning("StelKeyboardTriggers: Cannot find StreamingSkybox! streamingSkybox not initialized");
     }
 }
Exemplo n.º 2
0
    //    void Awake()
    //    {
    //   }

    void Awake()
    {
#if UNITY_WEBGL
        oldSpoutMode = false;
        spoutMode    = false;
#else
        oldSpoutMode   = spoutMode;
        stelBackground = GameObject.Find("StelBackground");
        if (!stelBackground)
        {
            Debug.LogError("StelController: Cannot find StelBackground. Scene setup wrong!");
        }
//        stelSkybox = gameObject.GetComponent<StelSkybox>();
//        if (!stelSkybox)
//        {
//            Debug.LogError("StelController: Cannot find StelSkybox. Scene setup wrong!");
//        }
#endif
        streamingSkybox = gameObject.GetComponent <StreamingSkybox>();
        if (!streamingSkybox)
        {
            Debug.LogError("StelController: Cannot find StreamingSkybox. Scene setup wrong!");
        }
    }