So this was working and I don't really know why it isn't anymore. I've made lots of changes, and now it's like OverlapCircleAll doesn't seem to work?
[SyncVar(OnChange = nameof(GroundedChange))] protected bool isGrounded = false; // Set to true during OnCollisionEnter2D()
public override void GroundedChange(bool oldValue, bool newValue, bool asServer)
{
if(newValue == true)
calcBounceServer();
}
[ServerRpc(RequireOwnership=false)]
protected void calcBounceServer()
{
Collider2D[] hitColliders = Physics2D.OverlapCircleAll(transform.position, circleCollider.radius);
Debug.Log("Length: " + hitColliders.Length);
For whatever reason, I keep getting Length: 0 during runtime