


M_authStatus = "Authenticate successful!" _bc.AuthenticateGoogle(m_googleId, m_serverAuthCode, true, OnSuccess_Authenticate, OnError_Authenticate) Īuthentication Success and Failure Callbacks public void OnSuccess_Authenticate(string responseData, object cbObject) Google Authentication public void AuthenticateGoogle() _bc.AuthenticateAnonymous(OnSuccess_Authenticate, OnError_Authenticate) _bc.AuthenticateUniversal(m_universalUserId, m_universalPwd, true, OnSuccess_Authenticate,Īnonymous Authentication: public void AuthenticateAnonymous() Universal Authentication: public void AuthenticateUniversal() _bc.AuthenticateEmailPassword(m_emailId, m_emailPwd, true, OnSuccess_Authenticate, This script handles all of our brainCloud Authentication methods and all of our calls and callbacks from our brainCloud wrapper.Įmail Authentication: public void AuthenticateEmail() We have a script called BrainCloudInterface.cs which is used to interface between the brainCloud Wrapper and our game-related classes. Next, we create a BCConfig GameObject and attach the BCConfig script as a component. _bc.Init() // Init data is taken from the brainCloud Unity Plugin _bc.WrapperName = gameObject.name // Optional: Set a wrapper name Code Overviewįirst, we initialize the brainCloud Wrapper in a script called BCConfig.cs using System.Collections The Authentication app also features the following brainCloud functionality:Įnjoy interacting with this example project and getting an idea for some of the features brainCloud has to offer. See Import/Export Game Data in the portal tutorial section for more information.

