// Start is called before the first frame update void Start() { alpha = 0f; transitioned = false; directionInfo = transform.parent.gameObject.GetComponent <FrogMovements>(); cc = transform.parent.GetComponent <CollisionsChecks>(); }
// Start is called before the first frame update void Start() { targetRadiansWallJump = maxWallJumpAngle * (Mathf.PI / 180f); targetRadiansGroundJump = maxJumpAngle * (Mathf.PI / 180f); rb2d = GetComponent <Rigidbody2D>(); col = GetComponent <Collider2D>(); cc = GetComponent <CollisionsChecks>(); maxJumpForceReached = false; animator = GetComponent <Animator>(); }