Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. /// <summary>
  6. /// Agent behaviour class
  7. /// Author: Thomas Elliot Jones
  8. /// </summary>
  9.  
  10. public class LayState : MonoBehaviour {
  11.  
  12.     public AgentBehaviour agent;
  13.     public NestBehaviour nest;
  14.     public PheremoneBehaviour pheremone;
  15.  
  16.     // Use this for initialization
  17.     void Start () {
  18.        
  19.     }
  20.    
  21.     public void CallLayState()
  22.     {
  23.         agent.nav.destination = nest.location;
  24.         agent.pheremoneTrail.enabled = true;
  25.         agent.pheremoneTrail.time = pheremone.evaporationTime;
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement