void SetInitialReferences()
 {
     nPCMaster = GetComponent <NPCMaster>();
     if (GetComponent <NPCStatePattern>() != null)
     {
         nPCStatePattern = GetComponent <NPCStatePattern>();
     }
 }
예제 #2
0
 void SetInitialReferences()
 {
     nPCMaster = GetComponent <NPCMaster>();
     if (GetComponent <Animator>() != null)
     {
         myAnimator = GetComponent <Animator>();
     }
 }
예제 #3
0
 void SetInitialReferences()
 {
     nPCMaster = GetComponent <NPCMaster>();
     if (GetComponent <NavMeshAgent>() != null)
     {
         myNavMeshAgent = GetComponent <NavMeshAgent>();
     }
 }
예제 #4
0
 void SetInitialReferences()
 {
     nPCMaster = transform.root.GetComponent <NPCMaster>();
     if (GetComponent <Collider>() != null)
     {
         myCollider = GetComponent <Collider>();
     }
     if (GetComponent <Rigidbody>() != null)
     {
         myRigidbody = GetComponent <Rigidbody>();
     }
 }
예제 #5
0
 void SetInitialReferences()
 {
     gunMaster = GetComponent <GunMaster>();
     if (transform.root.GetComponent <NPCMaster>() != null)
     {
         nPCMaster = transform.root.GetComponent <NPCMaster>();
     }
     if (transform.root.GetComponent <NPCStatePattern>() != null)
     {
         nPCStatePattern = transform.root.GetComponent <NPCStatePattern>();
     }
     myTransform = transform;
 }
예제 #6
0
 void SetInitialReferences()
 {
     nPCMaster      = GetComponent <NPCMaster>();
     myNavMeshAgent = GetComponent <NavMeshAgent>();
     ActivatePatrolState();
 }
예제 #7
0
        //void Update()
        //{
        //    if (Input.GetKeyUp(KeyCode.P))
        //    {
        //        nPCMaster.CallEventNPCIncreaseHealth(20);
        //    }
        //}

        void SetInitialReferences()
        {
            nPCMaster = GetComponent <NPCMaster>();
        }
예제 #8
0
 void SetInitialReferences()
 {
     nPCMaster          = GetComponent <NPCMaster>();
     nPCRelationsMaster = FindObjectOfType <GameManagerMaster>().GetComponent <GameManagerNPCRelationsMaster>();
     nPCStatePattern    = GetComponent <NPCStatePattern>();
 }
예제 #9
0
 void SetInitialReferences()
 {
     nPCMaster = transform.root.GetComponent <NPCMaster>();
 }