Skip to content

Commit

Permalink
feat(CharacterSpawner)!: making Awake and OnDestroy protected virtual
Browse files Browse the repository at this point in the history
BREAKING CHANGE: CharacterSpawner.Awake is now protected instead of public

Co-authored-by: James Frowen <jamesfrowen5@gmail.com>
  • Loading branch information
Moddingdudes and James-Frowen committed Feb 6, 2023
1 parent ba4090e commit 14ed80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Mirage/Runtime/CharacterSpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public enum PlayerSpawnMethod { Random, RoundRobin }


// Start is called before the first frame update
public virtual void Awake()
protected internal virtual void Awake()
{
if (PlayerPrefab == null)
{
Expand Down Expand Up @@ -81,7 +81,7 @@ public virtual void Awake()
}
}

private void OnDestroy()
protected virtual void OnDestroy()
{
if (Client != null && SceneManager != null)
{
Expand Down

0 comments on commit 14ed80a

Please sign in to comment.