public void ParseArgs() { InsightArgs args = new InsightArgs(); if (args.IsProvided("-ScenePath")) { Debug.Log("ScenePath: " + args.ExtractValue("-ScenePath")); SceneManager.LoadScene(args.ExtractValue("-ScenePath")); } }
// Use this for initialization public override void Start() { base.Start(); networkManager = GetComponent <ZoneNetworkManager>(); RegisterHandlers(); CacheArgs(); if (insightArguments.IsProvided("-MasterIp") && insightArguments.IsProvided("-MasterPort")) { Debug.Log("Master Server Args: " + insightArguments.ExtractValue("-MasterIp") + ":" + insightArguments.ExtractValueInt("-MasterPort")); StartClient(insightArguments.ExtractValue("-MasterIp"), insightArguments.ExtractValueInt("-MasterPort")); } else { Debug.Log("Master Server Args Not Provided. Assuming Defaults: localhost:5000"); StartClient("localhost", 5000); } }