Пример #1
0
	// Use this for initialization
	void Start () {
		animationScript = GetComponent<PlayerAnimation> ();
		playerRigid = GetComponent<Rigidbody2D> ();
		inputScript = GetComponent<PlayerInput> ();
		if (holdJump) {
			inputScript.activateOnHoldJumping (maxHoldTime);
			jumpHeigt = singleJumpForce;
		}

	}