Exemplo n.º 1
0
 void Awake()
 {
     if (_instance)
     {
         Destroy(gameObject);
         return;
     }
     _instance = this;
     DontDestroyOnLoad(gameObject);
 }
Exemplo n.º 2
0
 void Awake()
 {
     if (_instance)
     {
         Destroy(gameObject);
         return;
     }
     _instance = this;
     DontDestroyOnLoad(gameObject);
 }
Exemplo n.º 3
0
 private static void RequestInstance()
 {
     GameObject obj = new GameObject("LuviFacebookAPI");
     _instance = obj.AddComponent<LuviFacebookAPI>();
 }
Exemplo n.º 4
0
    private static void RequestInstance()
    {
        GameObject obj = new GameObject("LuviFacebookAPI");

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