Beispiel #1
0
 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);
     }
 }
Beispiel #2
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)
    {
    }
Beispiel #3
0
 public AbilityStrategy(Wizard w, AIStrategyController c, Ability a, int buttonid) : base(w, c)
 {
     ability = a;
     button  = buttonid;
 }
Beispiel #4
0
 public ASRandom(Wizard w, AIStrategyController c, Ability a, int buttonid) : base(w, c, a, buttonid)
 {
 }
Beispiel #5
0
 public AIStratDefend(Wizard w, AIStrategyController c) : base(w, c)
 {
 }
Beispiel #6
0
 public AIStratAttack(Wizard w, AIStrategyController c) : base(w, c)
 {
 }