Пример #1
0
 void Awake()
 {
     if (_instance)
     {
         Destroy(gameObject);
         return;
     }
     _instance = this;
     DontDestroyOnLoad(gameObject);
 }
Пример #2
0
 void Awake()
 {
     if (_instance)
     {
         Destroy(gameObject);
         return;
     }
     _instance = this;
     DontDestroyOnLoad(gameObject);
 }
Пример #3
0
 private static void RequestInstance()
 {
     GameObject obj = new GameObject("LuviFacebookAPI");
     _instance = obj.AddComponent<LuviFacebookAPI>();
 }
Пример #4
0
    private static void RequestInstance()
    {
        GameObject obj = new GameObject("LuviFacebookAPI");

        _instance = obj.AddComponent <LuviFacebookAPI>();
    }