protected override void OnSetup(params object[] _params) { string username = (string)_params[0]; Vector3 spawnPoint = (Vector3)_params[1]; nameplate.text = username; transform.position = spawnPoint; MobileInput.Initialise(); }
private void Start() { rb = GetComponent <Rigidbody>(); // if the game is running on Android, iOS, and not in UnityEditor, // Initialise the Joystick Mobile Input as the default player controller #if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR if (!MobileInput.Initialised) { MobileInput.Initialise(); } #endif }
private void Start() => MobileInput.Initialise();
// Start is called before the first frame update void Start() { MobileInput.Initialise(); }