Esempio n. 1
0
    public static void RequestInstance()
    {
        GameObject obj = new GameObject("LuviParse");

        _instance = obj.AddComponent <LuviParse>();
        DontDestroyOnLoad(obj);
    }
Esempio n. 2
0
 void Awake()
 {
     if (_instance)
     {
         Destroy(gameObject);
         return;
     }
     _instance = this;
     DontDestroyOnLoad(gameObject);
 }
Esempio n. 3
0
 void Awake()
 {
     if (_instance)
     {
         Destroy(gameObject);
         return;
     }
     _instance = this;
     DontDestroyOnLoad(gameObject);
 }
Esempio n. 4
0
 public static void RequestInstance()
 {
     GameObject obj = new GameObject("LuviParse");
     _instance = obj.AddComponent<LuviParse>();
     DontDestroyOnLoad(obj);
 }