void OnLoginGameReturn(object pb) { var ret = ParseCmd <Cmd.RetLoginGameServer>(pb); Debug.Log("OnLoginGameReturn:" + ret.error.ToString()); currentRole = ret.role; ShowRoleView(); }
void OnCreateRole(object pb) { var ret = ParseCmd <Cmd.RetCreateRole>(pb); Debug.Log("OnCreateRole:" + ret.error.ToString()); currentRole = ret.role; ShowRoleView(); }