public void LoadLoggedInputTypes(string[] arsSplitLogs) { Debug.Assert(arsSplitLogs[0] == "it"); int inputtype0, inputtype1; if (int.TryParse(arsSplitLogs[1], out inputtype0) == false || inputtype0 < 0) { Debug.LogErrorFormat("Error! {0} was not a valid input type to be loaded", arsSplitLogs[1]); return; } if (int.TryParse(arsSplitLogs[2], out inputtype1) == false || inputtype1 < 0) { Debug.LogErrorFormat("Error! {0} was not a valid input type to be loaded", arsSplitLogs[2]); return; } NetworkMatchSetup.SetInputType(0, (LocalInputType.InputType)inputtype0); NetworkMatchSetup.SetInputType(1, (LocalInputType.InputType)inputtype1); }
public void OnInputSelectChange() { NetworkMatchSetup.SetInputType(plyrselectorParent.idPlayer, (LocalInputType.InputType)dropdown.value); }