public void ButtonOffline() { if (Raqn.StartOfflinePlay()) { RaqnApp.App.ChangeScene(1); } }
public void ButtonLogin() { string _user = gui_input_user.text; string _pass = gui_input_pass.text; Raqn.TryLogin(_user, _pass); gui_loading.gameObject.SetActive(false); }
public void ButtonPlay() { GUI_Hide(); GUI_SetMessage("Cargando..."); gui_avatar.gameObject.SetActive(true); gui_avatar.gameObject.GetComponent <RaqnAvatar>().SetAvatar(login.user.profile.avatar); gui_avatar.GetComponentInChildren <TextMeshProUGUI>().text = "@" + login.user.profile.nickname; gui_loading.gameObject.SetActive(true); Raqn.StartPlay(); }
public void State_PlayReady() { GUI_SetMessage("Listo para jugar!"); GUI_Hide(); login = Raqn.CurrentLogin(); gui_avatar.gameObject.GetComponent <RaqnAvatar>().SetAvatar(login.user.profile.avatar); gui_avatar.GetComponentInChildren <TextMeshProUGUI>().text = "@" + login.user.profile.nickname; gui_avatar.gameObject.SetActive(true); gui_button_play.gameObject.SetActive(true); EventSystem.current.SetSelectedGameObject(gui_button_play.gameObject); }
void Awake() { if (Instance == null) { DontDestroyOnLoad(gameObject); Instance = this; Initialize(); } else if (Instance != this) { Destroy(gameObject); } }
public void State_Starting() { GUI_Hide(); gui_loading.gameObject.SetActive(true); GUI_SetMessage("Inicializando..."); login = Raqn.CurrentLogin(); if (login != null) { State_ShowLogin(); } else { State_AskLogin("Usa tu cuenta RAQN"); } }
public static DixInfo Load() { TextAsset _dixtext = Resources.Load("RAQN/dix") as TextAsset; DixInfo _dix = null; if (_dixtext != null) { _dix = RaqnSerializer.JsonDeserialize <DixInfo>(_dixtext.text); } if (_dix == null) { Debug.Log("Cannot Load DixInfo.json!"); Raqn.Quit(); } return(_dix); }
public void ButtonContinueLogin() { GUI_Hide(); Raqn.TryLogin(login.user.id, login.token); gui_loading.gameObject.SetActive(true); }