//캐릭터 이동과 메뉴 이동을 위한 업데이트 void Update() { /* 플레이어 */ inputHMoveValue = playerCommand.HMove(); runCount = playerCommand.HRun(); inputVMoveValue = playerCommand.VMove(); isDownCharacterJumpKey = JumpCommand(isDownCharacterJumpKey); //공격키 isDownCharacterNomal_AttackKey = NomalAttackCommand(isDownCharacterNomal_AttackKey); isDownCharacterSpecial_AttackKey = SpecialAttackCommand(isDownCharacterSpecial_AttackKey); /* 총 발사 공격 */ isDownShootingKey = ShootingCommand(isDownShootingKey); isDownTestSpellKey = SpellCommand(isDownTestSpellKey); isDownCharacterDashKey = DashCommand(isDownCharacterDashKey); /* 메뉴 */ isMenuActive = playerCommand.IsMenuKeyInput(); try { switch (isMenuActive) { case true: //Menu Acting break; case false: //Menu unActing if (runCount < 2) { PlayerHMove(inputHMoveValue); } else if (runCount >= 2) { HRun(inputHMoveValue); } PlayerVMove(inputVMoveValue); //수직이동 if (isDownCharacterJumpKey) { Jump(isDownCharacterJumpKey); } else if (isDownCharacterDashKey) { Dash(isDownCharacterDashKey); } else if (isDownTestSpellKey) { TestSpell(isDownTestSpellKey); } /*else if(isDownCharacterNomal_AttackKey) * { * Nomal_Attack(isDownCharacterNomal_AttackKey); * }*/ else if (isDownCharacterSpecial_AttackKey) { Special_Attack(isDownCharacterSpecial_AttackKey); } else if (isDownShootingKey) /* 총 발사 */ { Shooting(isDownShootingKey); } break; } } catch (System.Exception e) { Debug.Log(e); } }