// Use this for initialization void Start() { accountInfoPlugin = AccountInfoPlugin.GetInstance(); accountInfoPlugin.SetDebug(0); accountInfoPlugin.SetAccountCallbackListener(onGetAccountComplete, onGetAccountFail); CheckButton(); }
public static AccountInfoPlugin GetInstance() { if(instance==null){ container = new GameObject(); container.name="AccountInfoPlugin"; instance = container.AddComponent( typeof(AccountInfoPlugin) ) as AccountInfoPlugin; DontDestroyOnLoad(instance.gameObject); aupHolder = AUPHolder.GetInstance(); instance.gameObject.transform.SetParent(aupHolder.gameObject.transform); } return instance; }
public static AccountInfoPlugin GetInstance() { if (instance == null) { container = new GameObject(); container.name = "AccountInfoPlugin"; instance = container.AddComponent(typeof(AccountInfoPlugin)) as AccountInfoPlugin; DontDestroyOnLoad(instance.gameObject); aupHolder = AUPHolder.GetInstance(); instance.gameObject.transform.SetParent(aupHolder.gameObject.transform); } return(instance); }
// Use this for initialization void Start() { accountInfoPlugin = AccountInfoPlugin.GetInstance(); accountInfoPlugin.SetDebug(0); accountInfoPlugin.SetAccountCallbackListener(onGetAccountComplete,onGetAccountFail); CheckButton(); }