Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     accountInfoPlugin = AccountInfoPlugin.GetInstance();
     accountInfoPlugin.SetDebug(0);
     accountInfoPlugin.SetAccountCallbackListener(onGetAccountComplete, onGetAccountFail);
     CheckButton();
 }
Beispiel #2
0
    public static AccountInfoPlugin GetInstance()
    {
        if(instance==null){
            container = new GameObject();
            container.name="AccountInfoPlugin";
            instance = container.AddComponent( typeof(AccountInfoPlugin) ) as AccountInfoPlugin;
            DontDestroyOnLoad(instance.gameObject);
            aupHolder = AUPHolder.GetInstance();
            instance.gameObject.transform.SetParent(aupHolder.gameObject.transform);
        }

        return instance;
    }
Beispiel #3
0
    public static AccountInfoPlugin GetInstance()
    {
        if (instance == null)
        {
            container      = new GameObject();
            container.name = "AccountInfoPlugin";
            instance       = container.AddComponent(typeof(AccountInfoPlugin)) as AccountInfoPlugin;
            DontDestroyOnLoad(instance.gameObject);
            aupHolder = AUPHolder.GetInstance();
            instance.gameObject.transform.SetParent(aupHolder.gameObject.transform);
        }

        return(instance);
    }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     accountInfoPlugin = AccountInfoPlugin.GetInstance();
     accountInfoPlugin.SetDebug(0);
     accountInfoPlugin.SetAccountCallbackListener(onGetAccountComplete,onGetAccountFail);
     CheckButton();
 }