Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- /// <summary>
- /// Agent behaviour class
- /// Author: Thomas Elliot Jones
- /// </summary>
- public class LayState : MonoBehaviour {
- public AgentBehaviour agent;
- public NestBehaviour nest;
- public PheremoneBehaviour pheremone;
- // Use this for initialization
- void Start () {
- }
- public void CallLayState()
- {
- agent.nav.destination = nest.location;
- agent.pheremoneTrail.enabled = true;
- agent.pheremoneTrail.time = pheremone.evaporationTime;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement