diff --git a/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/Reward.cs b/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/Reward.cs index 580e57af4..201d151c7 100644 --- a/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/Reward.cs +++ b/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/Reward.cs @@ -23,10 +23,8 @@ void OnTriggerEnter(Collider other) ClaimPrize(other.gameObject); } - // This is called from PlayerController.CmdClaimPrize which is invoked by PlayerController.OnControllerColliderHit - // This only runs on the server [ServerCallback] - public void ClaimPrize(GameObject player) + void ClaimPrize(GameObject player) { if (available) { diff --git a/Assets/Mirror/Examples/Room/Scripts/Reward.cs b/Assets/Mirror/Examples/Room/Scripts/Reward.cs index 681f8e169..266b14894 100644 --- a/Assets/Mirror/Examples/Room/Scripts/Reward.cs +++ b/Assets/Mirror/Examples/Room/Scripts/Reward.cs @@ -23,10 +23,8 @@ void OnTriggerEnter(Collider other) ClaimPrize(other.gameObject); } - // This is called from PlayerController.CmdClaimPrize which is invoked by PlayerController.OnControllerColliderHit - // This only runs on the server [ServerCallback] - public void ClaimPrize(GameObject player) + void ClaimPrize(GameObject player) { if (available) { @@ -39,7 +37,6 @@ public void ClaimPrize(GameObject player) // calculate the points from the color ... lighter scores higher as the average approaches 255 // UnityEngine.Color RGB values are float fractions of 255 uint points = (uint)(((color.r) + (color.g) + (color.b)) / 3); - //Debug.Log($"Scored {points} points R:{color.r} G:{color.g} B:{color.b}"); // award the points via SyncVar on the PlayerController player.GetComponent().score += points;