-
-
Notifications
You must be signed in to change notification settings - Fork 190
Closed
Labels
Resolved Pending ReleaseIssue is resolved and will be available on the noted version.Issue is resolved and will be available on the noted version.
Description
Reported by Discord Id !@890806465835716659
https://discord.com/channels/424284635074134018/1034477094731784302/1390808006874107934
public class GameModeManager : NetworkBehaviour
{
public TeamDeathMatch Active;
public override void OnStartServer()
{
base.OnStartServer();
StartGameMode();
}
[ObserversRpc]
private void StartGameMode()
{
Active.OnStartGameModeClientSide(); // Logs "GameplayModeStarted TeamDeathMatch"
}
}
public class GameplayMode : NetworkBehaviour
{
public virtual void OnStartGameModeClientSide()
{
Debug.Log($"GameplayModeStarted {this.GetType().Name}");
}
}
public class TeamDeathMatch : GameplayMode
{
public override void OnStartGameModeClientSide()
{
Debug.Log($"TeamDeathMatchStarted {this.GetType().Name}");
}
}Metadata
Metadata
Assignees
Labels
Resolved Pending ReleaseIssue is resolved and will be available on the noted version.Issue is resolved and will be available on the noted version.