Gravity Files Remake Code [2021] Page
void StoreAndApply()
private Rigidbody2D rb; private bool isGrounded; private Transform groundCheck; void Update() gravity files remake code
Rigidbody2D rb = GetComponent<Rigidbody2D>(); velocityBeforeFlip = rb.velocity; // After one physics frame, reapply (simplified) Invoke(nameof(ApplyStoredVelocity), 0.02f); void StoreAndApply() private Rigidbody2D rb
if (other.CompareTag("Player")) GravityManager.Instance.ResetToGlobalGravity(); private bool isGrounded