Example #1
0
 public ClientStateNode(bool clientOnly, IntVariable nbClient, float agentSpeed, SpiritAI ai)
 {
     this.clientOnly = clientOnly;
     this.nbClient   = nbClient;
     this.agentSpeed = agentSpeed;
     this.ai         = ai;
 }
 public ThiefStateNode(bool thiefOnly, IntVariable nbThief, float agentSpeed, SpiritAI ai)
 {
     this.thiefOnly  = thiefOnly;
     this.nbThief    = nbThief;
     this.agentSpeed = agentSpeed;
     this.ai         = ai;
 }
Example #3
0
 public GoToQueueSpot(NavMeshAgent agent, SpiritAI ai)
 {
     this.agent = agent;
     this.ai    = ai;
 }
 // Start is called before the first frame update
 void Start()
 {
     ai    = GetComponent <SpiritAI>();
     agent = GetComponent <NavMeshAgent>();
 }
Example #5
0
 public IsQueueSpotAvailable(QueueSpot[] availableQueue, Transform target, SpiritAI ai)
 {
     this.availableQueue = availableQueue;
     this.target         = target;
     this.ai             = ai;
 }
Example #6
0
 public ArriveAtPosition(SpiritAI ai)
 {
     this.ai = ai;
 }
 public OrderGenerator(List <Item> stockItems, IntVariable nbItemsOrdered, SpiritAI ai)
 {
     this.stockItems     = stockItems;
     this.nbItemsOrdered = nbItemsOrdered;
     this.ai             = ai;
 }
Example #8
0
    //private Node[] nodes;

    public FindState(SpiritAI ai)
    {
        this.ai = ai;
    }
 public IsLootSpotAvailable(LootSpot[] availableLoot, Transform target, SpiritAI ai)
 {
     this.availableLoot = availableLoot;
     this.target        = target;
     this.ai            = ai;
 }