|
|
@ -38,12 +38,12 @@ public class SlowZonePrefab : NetworkBehaviour
|
|
|
|
if (collider.TryGetComponent<ServerCharacter>(out var player))
|
|
|
|
if (collider.TryGetComponent<ServerCharacter>(out var player))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Check if the player is NOT the crow
|
|
|
|
// Check if the player is NOT the crow
|
|
|
|
// if (!player.IsCrow)
|
|
|
|
if (!player.IsCrow)
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// Apply slow effect
|
|
|
|
// Apply slow effect
|
|
|
|
StartCoroutine(SlowPlayer(player));
|
|
|
|
StartCoroutine(SlowPlayer(player));
|
|
|
|
Debug.Log($"{player.name} is slowed down!");
|
|
|
|
Debug.Log($"{player.name} is slowed down!");
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|