예제 #1
0
    // Use this for initialization
    void Start()
    {
        contactInfoPlugin = ContactInfoPlugin.GetInstance();
        contactInfoPlugin.SetDebug(0);
        contactInfoPlugin.Init();
        contactInfoPlugin.SetContactCallbackListener(OnGetContactComplete, OnGetContactFail);

        CheckButton();
    }
예제 #2
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;
    }
예제 #3
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);
    }
예제 #4
0
    // Use this for initialization
    void Start()
    {
        contactInfoPlugin = ContactInfoPlugin.GetInstance();
        contactInfoPlugin.SetDebug(0);
        contactInfoPlugin.Init();
        contactInfoPlugin.SetContactCallbackListener(OnGetContactComplete,OnGetContactFail);

        CheckButton();
    }