Untitled

 avatar
unknown
plain_text
5 months ago
840 B
3
Indexable
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using Planetary;
using UnityEngine.SceneManagement;

public class InputCredentials : MonoBehaviour
{
    [Header("Player Credentials")]
    [SerializeField] TMP_InputField player_name;
    [SerializeField] TMP_InputField pass;

    PPMaster master;
    // Start is called before the first frame update
    void Start()
    {
        master = GetComponent<PPMaster>();

        //establish server connection
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void Okay()
    {
        master.Init(player_name.ToString(), pass.ToString()); //authorize connection -> Init(userID , password)
        SceneManager.LoadScene("ServerConnection");
        
    }
}
Editor is loading...
Leave a Comment