示例#1
0
    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;
    }
示例#2
0
    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);
    }
示例#3
0
    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;
    }
示例#5
0
    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);
    }
示例#7
0
        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);
        }