コード例 #1
0
ファイル: NdCenter.cs プロジェクト: KangLLL/century_war
 public void Logout()
 {
     if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         if (Bonjour.IsLogined())
         {
             Bonjour.Enter91();
             this.m_IsInPlatform = true;
         }
     }
 }
コード例 #2
0
ファイル: NdCenter.cs プロジェクト: KangLLL/century_war
 public void Login()
 {
     if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         if (Bonjour.IsLogined())
         {
             Bonjour.LoginOut();
         }
         Bonjour.Login();
         this.m_LoginState = LoginState.Logining;
     }
 }
コード例 #3
0
 public void Switch()
 {
     this.m_CurrrentOperation = AccountOperationType.Switch;
     if (Bonjour.IsLogined())
     {
         this.SendSwitchRequest();
     }
     else
     {
         NdCenter.Instace.Login();
         this.m_IsLogin = true;
     }
 }
コード例 #4
0
ファイル: NdStart.cs プロジェクト: KangLLL/century_war
 public void Initialize()
 {
     if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         if (Bonjour.IsLogined())
         {
             Application.LoadLevel(ClientStringConstants.INITIAL_SCENE_LEVEL_NAME);
         }
         else
         {
             NdCenter.Instace.Login();
             this.m_IsLogin = true;
         }
     }
 }
コード例 #5
0
ファイル: NdCenter.cs プロジェクト: KangLLL/century_war
 public void Buy(string purchaseID, string productID, string name, double price, double originalPrice, int quantity, string description)
 {
     if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         this.m_BuyError = null;
         if (Bonjour.IsLogined())
         {
             Bonjour.UniPay(purchaseID, productID, name, price, price, quantity, description);
             this.m_BuyState = BuyState.Buying;
         }
         else
         {
             this.m_BuyState = BuyState.Fail;
             this.m_BuyError = "Not Login yet!";
         }
     }
 }