void Awake() { if (_instance) { Destroy(gameObject); return; } _instance = this; DontDestroyOnLoad(gameObject); }
private static void RequestInstance() { GameObject obj = new GameObject("LuviFacebookAPI"); _instance = obj.AddComponent<LuviFacebookAPI>(); }
private static void RequestInstance() { GameObject obj = new GameObject("LuviFacebookAPI"); _instance = obj.AddComponent <LuviFacebookAPI>(); }