// Use this for initialization void Start() { dispatcher = Dispatcher.GetInstance(); smsPlugin = SMSPlugin.GetInstance(); smsPlugin.SetDebug(0); smsPlugin.Init(); AddEventListener(); }
public static SMSPlugin GetInstance() { if (instance == null) { container = new GameObject(); container.name = "SMSPlugin"; instance = container.AddComponent(typeof(SMSPlugin)) as SMSPlugin; DontDestroyOnLoad(instance.gameObject); aupHolder = AUPHolder.GetInstance(); instance.gameObject.transform.SetParent(aupHolder.gameObject.transform); } return(instance); }