public void Logout() { if (Application.platform == RuntimePlatform.IPhonePlayer) { if (Bonjour.IsLogined()) { Bonjour.Enter91(); this.m_IsInPlatform = true; } } }
public void Login() { if (Application.platform == RuntimePlatform.IPhonePlayer) { if (Bonjour.IsLogined()) { Bonjour.LoginOut(); } Bonjour.Login(); this.m_LoginState = LoginState.Logining; } }
public void Switch() { this.m_CurrrentOperation = AccountOperationType.Switch; if (Bonjour.IsLogined()) { this.SendSwitchRequest(); } else { NdCenter.Instace.Login(); this.m_IsLogin = true; } }
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; } } }
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!"; } } }