public static AUPHolder GetInstance() { if(instance==null){ container = new GameObject(); container.name="AUPHolder"; instance = container.AddComponent( typeof(AUPHolder) ) as AUPHolder; DontDestroyOnLoad(instance.gameObject); } return instance; }
public static AUPHolder GetInstance() { if (instance == null) { container = new GameObject(); container.name = "AUPHolder"; instance = container.AddComponent(typeof(AUPHolder)) as AUPHolder; DontDestroyOnLoad(instance.gameObject); } return(instance); }
public static BatteryPlugin GetInstance() { if(instance==null){ container = new GameObject(); container.name="BatteryPlugin"; instance = container.AddComponent( typeof(BatteryPlugin) ) as BatteryPlugin; DontDestroyOnLoad(instance.gameObject); aupHolder = AUPHolder.GetInstance(); instance.gameObject.transform.SetParent(aupHolder.gameObject.transform); } return instance; }
public static AndroidUltimatePluginController GetInstance() { if(instance==null){ container = new GameObject(); container.name="AndroidUltimatePluginController"; instance = container.AddComponent( typeof(AndroidUltimatePluginController) ) as AndroidUltimatePluginController; 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); }
public static AndroidUltimatePluginController GetInstance() { if (instance == null) { container = new GameObject(); container.name = "AndroidUltimatePluginController"; instance = container.AddComponent(typeof(AndroidUltimatePluginController)) as AndroidUltimatePluginController; DontDestroyOnLoad(instance.gameObject); aupHolder = AUPHolder.GetInstance(); instance.gameObject.transform.SetParent(aupHolder.gameObject.transform); } return(instance); }
public static Dispatcher GetInstance() { if (instance == null) { aupHolder = AUPHolder.GetInstance(); container = new GameObject(); container.name = "Dispatcher"; instance = container.AddComponent(typeof(Dispatcher)) as Dispatcher; DontDestroyOnLoad(instance.gameObject); instance.gameObject.transform.SetParent(aupHolder.gameObject.transform); } return(instance); }