void Awake()
 {
     if (staticGameObject == null)
     {
         staticGameObject = this.gameObject;
         instance         = staticGameObject.GetComponent <SceneLoadingManager>();
         DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
Пример #2
0
 public void ToIdle()
 {
     GetComponent <Animator>().SetTrigger("ToIdle");
     SceneLoadingManager.CallLoadSceneAsync();
 }