PlayerCreatorUtilities
It is a helper class that performs operations related to creating the player object or changing the existing object.
Member
Methods
public static void TryCreatePlayerOrReplace(NetworkConnection conn, GameObject prefab, Action<GameObject> onCompleted = null)public static void CreatePlayer(NetworkConnection conn, GameObject prefab, Action<GameObject> onCompleted = null)public static void ReplacePlayer(NetworkConnection conn, GameObject prefab, Action<GameObject> onCompleted = null)public static void RemovePlayer(NetworkConnection conn)private static GameObject SpawnPlayer(NetworkConnection conn, GameObject prefab)private static void Init()
Last updated