Files
survival-game/Assets/Mirror/Examples/BilliardsPredicted/Ball/RedBallPredicted.cs
2025-06-16 15:14:23 +02:00

23 lines
799 B
C#

using UnityEngine;
namespace Mirror.Examples.BilliardsPredicted
{
// keep the empty script so we can find out what type of ball we collided with.
public class RedBallPredicted : NetworkBehaviour
{
/* ball<->pocket collisions are handled by Pockets.cs for now.
because predicted object's rigidbodies are sometimes moved out of them.
which means this script here wouldn't get the collision info while predicting.
which means it's easier to check collisions from the table perspective.
// destroy when entering a pocket.
// there's only one trigger in the scene (the pocket).
[ServerCallback]
void OnTriggerEnter(Collider other)
{
NetworkServer.Destroy(gameObject);
}
*/
}
}