Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void GlueToStairs ()
{
if (!groundHit || IM.Jump_Button () || !isStair || Mathf.Abs(move) > 0)
this.transform.GetComponent<Rigidbody2D> ().isKinematic = false;
else if (groundHit && isStair)
this.transform.GetComponent<Rigidbody2D> ().isKinematic = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment