Exemple #1
0
 // Use this for initialization
 void Start()
 {
     m_maxHp      = m_hp;
     m_controller = this.GetComponent <CharacterController>();
     m_navAgent   = this.GetComponent <NavMeshAgent>();
     m_dropSystem = GetComponent <ItemDropSystem>();
     m_animator   = GetComponent <Animator>();
     if (m_target == null)
     {
         m_target = GameObject.FindGameObjectWithTag("Player");
     }
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     controller   = this.GetComponent <CharacterController>();
     navAgent     = this.GetComponent <NavMeshAgent>();
     m_dropSystem = GetComponent <ItemDropSystem>();
 }
 // Use this for initialization
 void Start()
 {
     m_dropSystem = GetComponent <ItemDropSystem>();
 }