SimpleMultiplayerPlayer.cs 364 B

1234567891011
  1. using UnityEngine;
  2. public class SimpleMultiplayerPlayer : MonoBehaviour
  3. {
  4. // Just add *some* kind of movement. The specifics here are not of interest. Serves just to
  5. // demonstrate that the inputs are indeed separate.
  6. public void OnTeleport()
  7. {
  8. transform.position = new Vector3(Random.Range(-75, 75), 0.5f, Random.Range(-75, 75));
  9. }
  10. }