NetworkManager.GetStartPosition can now be overwritten

This commit is contained in:
vis2k 2022-09-14 21:38:57 +08:00
parent deb75b5e6f
commit ac352c084d

View File

@ -1053,7 +1053,7 @@ public static void UnRegisterStartPosition(Transform start)
}
/// <summary>Get the next NetworkStartPosition based on the selected PlayerSpawnMethod.</summary>
public Transform GetStartPosition()
public virtual Transform GetStartPosition()
{
// first remove any dead transforms
startPositions.RemoveAll(t => t == null);