public abstract partial class SpawnManagerBase : MonoBehaviourPunCallbacks, IOnEventCallback
// Instantiate the player and let the PhotonNetwork know of the new character.
var player = GameObject.Instantiate(GetCharacterPrefab(newPlayer), spawnPosition, spawnRotation);
var photonView = player.GetComponent<PhotonView>();
// Instantiate the player and let the PhotonNetwork know of the new character.
bool nonLocalPlayer = Equals(newPlayer, PhotonNetwork.LocalPlayer) == false;
var character = _characterFactory.Create(nonLocalPlayer
? CharacterType.Replicator
: CharacterType.Local);