using System.Collections; using System.Collections.Generic; using UnityEngine; using SiegeSong; namespace SiegeSong { public class AttackSelector : MonoBehaviour { public int[] AvailableTechniques; public int[] IneffectiveTechniques; public void SelectAttackPattern() { // find target // determine ineffective techniques // pick a random attack pattern (shield-bash, shield-bash, forehand slash / forehand slash, forehand slash, downward slash) with as few as possible ineffective tecniques // move into range (move towards target.position + technique.hitboxRangeOffset until distance is less than hitRange and there is no allies within the same distance) // perform techniques in sequence with delays // if interupted, pick another random attack pattern and start again from there } void Start() { } void Update() { } } }