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

        ToggleJumpModes();
    }