Exemplo n.º 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");
    }
Exemplo n.º 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());
        };
    }
Exemplo n.º 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");
     }
 }
Exemplo n.º 6
0
    // 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");
        };
    }