コード例 #1
0
ファイル: PlayerControl.cs プロジェクト: majjom/AnotherStart
 private void Awake()
 {
     playerMoveScript    = GetComponent <PlayerLeftRightMove>();
     playerJumpScript    = GetComponent <PlayerJump>();
     playerJetJumpScript = GetComponent <PlayerJetJump>();
     playerFlyScript     = GetComponent <PlayerFly>();
 }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        playerJumpScript    = GetComponent <PlayerJump>();
        playerJetJumpScript = GetComponent <PlayerJetJump>();
        playerFlyScript     = GetComponent <PlayerFly>();
        playerRigidbody2D   = GetComponent <Rigidbody2D>();

        ToggleJumpModes();
    }