// Use this for initialization void Start() { contactInfoPlugin = ContactInfoPlugin.GetInstance(); contactInfoPlugin.SetDebug(0); contactInfoPlugin.Init(); contactInfoPlugin.SetContactCallbackListener(OnGetContactComplete, OnGetContactFail); CheckButton(); }
public static ContactInfoPlugin GetInstance() { if(instance==null){ container = new GameObject(); container.name="ContactInfoPlugin"; instance = container.AddComponent( typeof(ContactInfoPlugin) ) as ContactInfoPlugin; DontDestroyOnLoad(instance.gameObject); aupHolder = AUPHolder.GetInstance(); instance.gameObject.transform.SetParent(aupHolder.gameObject.transform); } return instance; }
public static ContactInfoPlugin GetInstance() { if (instance == null) { container = new GameObject(); container.name = "ContactInfoPlugin"; instance = container.AddComponent(typeof(ContactInfoPlugin)) as ContactInfoPlugin; DontDestroyOnLoad(instance.gameObject); aupHolder = AUPHolder.GetInstance(); instance.gameObject.transform.SetParent(aupHolder.gameObject.transform); } return(instance); }
// Use this for initialization void Start() { contactInfoPlugin = ContactInfoPlugin.GetInstance(); contactInfoPlugin.SetDebug(0); contactInfoPlugin.Init(); contactInfoPlugin.SetContactCallbackListener(OnGetContactComplete,OnGetContactFail); CheckButton(); }