public void AddConscript(HumanNavigation conscript) { // Debug.Log ("Adding a conscript..."); conscriptsFollowing.Add(conscript); AudioSource.PlayClipAtPoint(purrs [Random.Range(0, purrs.Length)], Vector3.zero); CameraDistanceTest(); }
public void Reset(ISettings settings, ILogicSettings logicSettings) { Client = new Client(Settings, ApiFailureStrategy); // ferox wants us to set this manually Inventory = new Inventory(Client, logicSettings); Navigation = new HumanNavigation(Client); MapCache = new MapCache(); }
void Awake() { meshRenderer = GetComponentInChildren <MeshRenderer>(); humanNavigation = GetComponent <HumanNavigation>(); catP1Red = GameObject.FindGameObjectWithTag("catP1Red").GetComponent <Transform> (); catP2Blu = GameObject.FindGameObjectWithTag("catP2Blu").GetComponent <Transform> (); catP3Grn = GameObject.FindGameObjectWithTag("catP3Grn").GetComponent <Transform> (); catP1RedConscripts = catP1Red.GetComponent <CatConscripts> (); catP2BluConscripts = catP2Blu.GetComponent <CatConscripts> (); catP3GrnConscripts = catP3Grn.GetComponent <CatConscripts> (); CleanUpHuman(); }
void Start() { humanNavigation = gameObject.GetComponentInParent <HumanNavigation>(); }