using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class GetLoginData : MonoBehaviour
{
// Use this for initialization
void Awake()
{
InitIPPort();
}
void Update()
{
if (Input.GetKeyUp(KeyCode.Escape))
{
Application.Quit();
}
}
public Text text;
void InitIPPort()
{
string[] args = System.Environment.CommandLine.Split(' ');
if (args.Length >= 0)
{
for(int i =0;i<args.Length;i++)
{
text.text += args[i] +" ";
}
}
}
}
using UnityEngine.UI;
using System.Collections;
public class GetLoginData : MonoBehaviour
{
// Use this for initialization
void Awake()
{
InitIPPort();
}
void Update()
{
if (Input.GetKeyUp(KeyCode.Escape))
{
Application.Quit();
}
}
public Text text;
void InitIPPort()
{
string[] args = System.Environment.CommandLine.Split(' ');
if (args.Length >= 0)
{
for(int i =0;i<args.Length;i++)
{
text.text += args[i] +" ";
}
}
}
}