private void Awake() { playerMoveScript = GetComponent <PlayerLeftRightMove>(); playerJumpScript = GetComponent <PlayerJump>(); playerJetJumpScript = GetComponent <PlayerJetJump>(); playerFlyScript = GetComponent <PlayerFly>(); }
// Use this for initialization void Start() { playerJumpScript = GetComponent <PlayerJump>(); playerJetJumpScript = GetComponent <PlayerJetJump>(); playerFlyScript = GetComponent <PlayerFly>(); playerRigidbody2D = GetComponent <Rigidbody2D>(); ToggleJumpModes(); }