Files
Test-Multiplayer/Library/PackageCache/com.unity.inputsystem@be6c4fd0abf5/Samples~/SimpleMultiplayer/SimpleMultiplayerPlayer.cs
pelpanagiotis 329b7d3183 First Commit
2025-12-21 18:31:02 +02:00

12 lines
364 B
C#

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