Beispiel #1
0
    public static void RequestInstance()
    {
        GameObject obj = new GameObject("LuviParse");

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