Beispiel #1
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);
    }
Beispiel #3
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);
        }