public AIStrat(Wizard w, AIStrategyController c) { wiz = w; gc = c; friendlyteam = w.teamtag; if (friendlyteam == 1) { myGoalPos = GameObject.Find("LeftGoal").transform.position; enemyGoalPos = GameObject.Find("RightGoal").transform.position; attackDirection = new Vector3(1, 0, 0); defendDirection = new Vector3(-1, 0, 0); } else { myGoalPos = GameObject.Find("RightGoal").transform.position; enemyGoalPos = GameObject.Find("LeftGoal").transform.position; attackDirection = new Vector2(-1, 0); defendDirection = new Vector2(1, 0); } }
public float accuracy = -0.5f; // -1 if will only kick when PRECISELY LINED UP; 1 Will kick whennever in range public ASBasicKick(Wizard w, AIStrategyController c, Ability a, int buttonid) : base(w, c, a, buttonid) { }
public AbilityStrategy(Wizard w, AIStrategyController c, Ability a, int buttonid) : base(w, c) { ability = a; button = buttonid; }
public ASRandom(Wizard w, AIStrategyController c, Ability a, int buttonid) : base(w, c, a, buttonid) { }
public AIStratDefend(Wizard w, AIStrategyController c) : base(w, c) { }
public AIStratAttack(Wizard w, AIStrategyController c) : base(w, c) { }