Skip to content

Commit

Permalink
Added SetPlayerPrefab method for SessionPlayerSpawner
Browse files Browse the repository at this point in the history
  • Loading branch information
ooonush committed Nov 8, 2024
1 parent 2038342 commit c81903e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public class SessionPlayerSpawner : MonoBehaviour
[SerializeField]
private NetworkSessionObject _playerPrefab;
/// <summary>
/// Sets the PlayerPrefab to use.
/// </summary>
/// <param name="nob"></param>
public void SetPlayerPrefab(NetworkSessionObject nob) => _playerPrefab = nob;
/// <summary>
/// True to add player to the active scene when no global scenes are specified through the SceneManager.
/// </summary>
[Tooltip("True to add player to the active scene when no global scenes are specified through the SceneManager.")]
Expand Down

0 comments on commit c81903e

Please sign in to comment.