protected virtual void Start()
 {
     UpdateCamera();
     UpdateMaterialsForLastTexture();
     UpdateShaderParameters();
     CheckCompensateForParentTransform();
     if (MultiThreaded)
     {
         threadState = new LightningThreadState();
         InvokeRepeating("UpdateMainThreadActions", 0.0f, 1.0f / 240.0f);
     }
 }
Exemple #2
0
        protected virtual void Start()
        {
            UpdateCamera();
            UpdateMaterialsForLastTexture();
            UpdateShaderParameters();
            CheckCompensateForParentTransform();
            UnityEngine.SceneManagement.SceneManager.sceneLoaded += OnSceneLoaded;
            if (MultiThreaded)
            {
#if !UNITY_WEBGL
                threadState = new LightningThreadState();
#endif
            }
        }