CheckMainCamera() public static method

Check if there is a stage camera in the scene. If none, create one.
public static CheckMainCamera ( ) : void
return void
Example #1
0
        /// <summary>
        ///
        /// </summary>
        public static void Instantiate()
        {
            if (_inst == null)
            {
                _inst       = new Stage();
                GRoot._inst = new GRoot();
                _inst.AddChild(GRoot._inst.displayObject);

                StageCamera.CheckMainCamera();
            }
        }
Example #2
0
 void SceneManager_sceneLoaded(Scene scene, LoadSceneMode mode)
 {
     StageCamera.CheckMainCamera();
 }
Example #3
0
 void OnLevelWasLoaded()
 {
     StageCamera.CheckMainCamera();
 }
Example #4
0
 void SceneManager_sceneLoaded(UnityEngine.SceneManagement.Scene scene, LoadSceneMode mode)
 {
     StageCamera.CheckMainCamera();
 }