Esempio n. 1
0
    public void Start()
    {
        //DontDestroyOnLoad(gameObject);
        Application.runInBackground = true; // this must run in background or it will drop connection if not focussed.

        //ChatPanel.gameObject.SetActive(false);
        ConnectingLabel.SetActive(false);
        UserName = GameSettings2.LoadTempUser();

        if (string.IsNullOrEmpty(UserName))
        {
            UserName = GameSettings2.LoadTempUser();
        }

        bool _AppIdPresent = string.IsNullOrEmpty(PhotonNetwork.PhotonServerSettings.ChatAppID);

        this.missingAppIdErrorPanel.SetActive(_AppIdPresent);
        if (string.IsNullOrEmpty(PhotonNetwork.PhotonServerSettings.ChatAppID))
        {
            Debug.LogError("You need to set the chat app ID in the PhotonServerSettings file in order to continue.");
            return;
        }

        Connect();
    }
Esempio n. 2
0
 public static void InitateConection()
 {
     tempUser     = GameSettings2.LoadTempUser();
     tempPassword = GameSettings2.LoadTempPassword();
     //pega o dono
     GetIDFromBd(_connection, tempUser, tempPassword);
     //pega o slot
     GetSlotData(_connection, _ownerChar);
 }
Esempio n. 3
0
    public void Start()
    {
        this.chatNewComponent = FindObjectOfType <ChatGui>();
        string prefsName = GameSettings2.LoadTempUser();

        if (!string.IsNullOrEmpty(prefsName))
        {
            this.idInput.text = prefsName;
        }
    }
Esempio n. 4
0
    public static void LoadOwnerData()
    {
        string tempUser     = GameSettings2.LoadTempUser();
        string tempPassword = GameSettings2.LoadTempPassword();

        //ConectBd(_source);

        GetIDFromBd(_connection, tempUser, tempPassword);

        GetSlotData(_connection, _ownerChar);

        GetCharacterData(_connection, _ownerChar, _charSlot);
    }