public void SkillCommand(int index) { int skillIndex = userPartyData[currentPlayerIndex].skill; curActionIndex = skillIndex; currentAction = BattleManager.BtAction.Skill; SkillBase curSkill = DataManager.GetInstance().GetSkillData(skillIndex); uiController.SetActionText(currentPlayerIndex, curSkill.name); switch (curSkill.targetType) { case TargetType.SingleEnemy: uiController.showIndicator(true, targetIndices); uiController.EnemyTargetActive(true); break; case TargetType.AllEnemy: targetIndices = new int[enemyPartyData.Length]; for (int i = 0; i < enemyPartyData.Length; i++) { targetIndices[i] = i + 5; } uiController.CommandPanelActive(false); makeBattleAction(); resetActionData(); break; case TargetType.SingleAlli: targetIndices = new int[1] { 0 }; break; case TargetType.AllAlli: break; } }