Esempio n. 1
0
    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();
    }
Esempio n. 2
0
    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
    }
Esempio n. 3
0
 private void Start() => MobileInput.Initialise();
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     MobileInput.Initialise();
 }