void OnCollisionExit(Collision other) { if (other.transform.CompareTag("Player")) { player.DismountPlatformReset(); } player.ApplyPlatformVelocity(calculatedVelocity); }