This commit is contained in:
2025-09-17 18:56:28 +08:00
commit 54c72710a5
5244 changed files with 5717609 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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);
}
*/
}
}