示例#1
0
 void OnGUI()
 {
     if (GUI.Button(new Rect(50, 50, 200, 50), "<-"))
     {
         Application.LoadLevel("MainScene");
     }
     if (GUI.Button(new Rect(50, 150, 200, 50), "SignupWithBaseName"))
     {
         LobiCoreAPIBridge.SignupWithBaseName(name, "SignupWithBaseNameCallback", "LobiUnity");
     }
     if (GUI.Button(new Rect(50, 250, 200, 50), "SetAccountBaseName"))
     {
         LobiCoreBridge.SetAccountBaseName("LobiUnity");
     }
     if (GUI.Button(new Rect(50, 350, 200, 50), "PresentProfile"))
     {
         LobiCoreBridge.PresentProfile();
     }
     if (GUI.Button(new Rect(50, 450, 200, 50), "PresentAdWall"))
     {
         LobiCoreBridge.PresentAdWall();
     }
     if (GUI.Button(new Rect(50, 550, 200, 50), "BindToLobiAccount"))
     {
         LobiCoreBridge.BindToLobiAccount();
     }
     if (GUI.Button(new Rect(50, 650, 200, 50), "IsBoundWithLobiAccount"))
     {
         LobiCoreAPIBridge.IsBoundWithLobiAccount();
     }
 }
    // Use this for initialization
    void Start()
    {
        Debug.Log("IsSignedIn() = " + (LobiCoreBridge.IsSignedIn() ? "true" : "false"));

        // set app link listener
        // LobiChatBridge.SetAppLinkListener(name, "SetAppLinkListenerCallback");
    }
示例#3
0
    // Use this for initialization
    void Start()
    {
        Debug.Log("IsSignedIn() = " + (LobiCoreBridge.IsSignedIn() ? "true" : "false"));

        // set app link listener
        // LobiChatBridge.SetAppLinkListener(name, "SetAppLinkListenerCallback");

        LobiEventReceiver.Instance.IsBoundWithLobiAccountAction = (bool b) => {
            Debug.Log("IsBoundWithLobiAccountAction : " + b.ToString());
        };
    }
示例#4
0
    // Use this for initialization
    void Start()
    {
        Debug.Log("IsSignedIn() = " + (LobiCoreBridge.IsSignedIn() ? "true" : "false"));
        LobiRecBridge.RegisterMicEnableErrorObserver(
            name,
            "MicEnableErrorCallback"
            );
        LobiRecBridge.RegisterDismissingPostVideoViewNotification(
            name,
            "DismissingPostVideoViewCallback"
            );

        // set app link listener
        // LobiChatBridge.SetAppLinkListener(name, "SetAppLinkListenerCallback");
    }
 public void ButtonPush()
 {
     //Debug.Log("Button Push !!");
     if (LobiCoreBridge.IsSignedIn())
     {
         Debug.Log("アカウント作成済み");
         /* アカウントが作成済みかチェック */
         int val = (int)(10000.0f * Random.value);
         LobiRankingAPIBridge.SendRanking("Button", "SendRankingCallback", "test01", val);
     }
     else
     {
         Debug.Log("アカウント作成がまだ");
         LobiCoreAPIBridge.SignupWithBaseName("Button", "SendAccountCallBack", "PlayerName");
     }
 }
    // Use this for initialization
    void Start()
    {
        Debug.Log("IsSignedIn() = " + (LobiCoreBridge.IsSignedIn() ? "true" : "false"));
        // Lobi Rec SDK を使用する際は起動時に以下の設定を必ず行ってください。
                #if (UNITY_IOS || UNITY_IPHONE) && UNITY_4_X
        AudioSettings.outputSampleRate = 44100;
                #endif

        // set app link listener
        // LobiChatBridge.SetAppLinkListener(name, "SetAppLinkListenerCallback");

        LobiCoreBridge.SetupPopOverController(100, 100, LobiCoreBridge.PopOverArrowDirection.Left);
        // Use for customize
        // LobiCoreBridge.SetNavigationBarCustomColor(1.0f, 0.5f, 0.0f);

        LobiEventReceiver.Instance.DissmissedAction = () => {
            Debug.Log("DissmissedAction");
        };
    }