// Use this for initialization void Start() { _memory = gameObject.GetComponent<CharacterMemory> (); //_char = gameObject.GetComponent<Character> (); navigator = gameObject.GetComponent<NavMeshAgent> (); GotoDestination (_memory.Home.transform.position); }
// Use this for initialization void Start() { _mover = gameObject.GetComponent<CharacterMover> (); _memory = gameObject.GetComponent<CharacterMemory> (); needs = new Dictionary<string, int> (); foreach (string need in GameLogic.villagerNeeds) { needs.Add (need,100); } gameObject.name = _memory.Name; }
// Use this for initialization void Start() { _mover = gameObject.GetComponent<CharacterMover> (); _memory = gameObject.GetComponent<CharacterMemory> (); _interface = gameObject.transform.FindChild ("Canvas").gameObject; needs = new Dictionary<string, int> (); foreach (string need in GameLogic.villagerNeeds) { needs.Add (need, 100); } gameObject.transform.FindChild ("Name").GetComponent<TextMesh> ().text = _memory.Name; gameObject.name = _memory.Name; }
// Use this for initialization void Start() { _memory = gameObject.GetComponent<CharacterMemory> (); navigator = gameObject.GetComponent<NavMeshAgent> (); SendChar (_memory.Home.transform.position); }