示例#1
0
    // Use this for initialization
    void Start()
    {
        _memory = gameObject.GetComponent<CharacterMemory> ();
        //_char = gameObject.GetComponent<Character> ();
        navigator = gameObject.GetComponent<NavMeshAgent> ();

        GotoDestination (_memory.Home.transform.position);
    }
示例#2
0
    // 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;
    }
示例#3
0
 // 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;
 }
示例#4
0
 // Use this for initialization
 void Start()
 {
     _memory = gameObject.GetComponent<CharacterMemory> ();
     navigator = gameObject.GetComponent<NavMeshAgent> ();
     SendChar (_memory.Home.transform.position);
 }