|
|
|
@ -190,6 +190,14 @@ namespace Unity.Multiplayer.Samples.BossRoom
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// If the player is currently the crow, convert them back into a normal player
|
|
|
|
|
if (player.IsCrow)
|
|
|
|
|
{
|
|
|
|
|
Debug.Log($"[Platform] Crow {player.name} landed on platform {PlatformID.Value}, converting back to player.");
|
|
|
|
|
CrowManager.Instance.ClearCrow(); // Notify CrowManager to clear the current crow
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IsOccupied = true;
|
|
|
|
|
occupierId.Value = player.OwnerClientId;
|
|
|
|
|
player.OnArrivalOnPlatform(PlatformID.Value);
|
|
|
|
@ -253,6 +261,7 @@ namespace Unity.Multiplayer.Samples.BossRoom
|
|
|
|
|
timerCoroutine = StartCoroutine(UpdateTimerShader(maxTime));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ClientRpc]
|
|
|
|
|
private void PauseClientRpc()
|
|
|
|
|
{
|
|
|
|
|