暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SimpleMultiplayerPlayer.cs 364B

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. }