public override bool Tick(AIInput g) { Vector3 selected; if (!g.point) { return(false); } selected = g.point.transform.position; //Debug.Log(selected); g.move(selected); if ((g.transform.position - selected).magnitude <= range) { return(false); } return(true); }
public override bool Tick(AIInput g) { g.move(Player.transform.position); g.shoot(); return(false); }