Exemple #1
0
 void Start()
 {
     player              = FindObjectOfType <Player>();
     aiCharacterControl  = GetComponent <AICharacterControl>();
     currentHealthPoints = maxHealthPoints;
     SetupRuntimeAnimator();
 }
 private void Start()
 {
     cameraRaycaster      = Camera.main.GetComponent <CameraRaycaster>();
     thirdPersonCharacter = GetComponent <ThirdPersonCharacter>();
     aiCharacterControl   = GetComponent <AICharacterControl>();
     cameraRaycaster.notifyMouseClickObservers += ProcessMouseClick;
     walkTarget = new GameObject("walkTarget");
 }
Exemple #3
0
        void Start()
        {
            cameraRaycaster      = Camera.main.GetComponent <CameraRaycaster>();
            thirdPersonCharacter = GetComponent <ThirdPersonCharacter>();
            aiCharacterControl   = GetComponent <AICharacterControl>();
            walkTarget           = new GameObject("walkTarget");

            cameraRaycaster.onMouseOverPotentiallyWalkable += OnMouseOverPotentiallyWalkable;
            cameraRaycaster.onMouseOverEnemy += OnMouseOverEnemy;
        }
Exemple #4
0
 private void Start()
 {
     // walkTarget = new GameObject("WalkTarget");
     cameraRaycaster = Camera.main.GetComponent <CameraRaycaster>();
     m_Character     = GetComponent <ThirdPersonCharacter>();
     AIControl       = GetComponent <AICharacterControl>();
     NavMesh         = GetComponent <NavMeshAgent>();
     cameraRaycaster.mouseOverTerrain += MouseOverTerrain;
     cameraRaycaster.mouseOverEnemy   += MouseOverEnemy;
 }
        void Start()
        {
            player             = FindObjectOfType <Player>();
            aICharacterControl = GetComponent <AICharacterControl>();
            targetMark         = GetComponentInChildren <TargetMarker>();
            rend = targetMark.GetComponentInChildren <Renderer>();
            weaponDamageCollider = GetComponentInChildren <WeaponHook>();
            anim    = GetComponent <Animator>();
            enemyUI = GetComponentInChildren <EnemyUI>();

            currentHealthPoints = maxHealthPoints;
            timeSinceLastHit    = immuneAfterHitDelay;
        }
Exemple #6
0
 void Start()
 {
     player              = GameObject.FindGameObjectWithTag("Player");
     aiCharacterControl  = GetComponent <AICharacterControl>();
     currentHealthPoints = maxHealthPoints;
 }
Exemple #7
0
 private void Start()
 {
     player             = GameObject.FindGameObjectWithTag("Player");
     aiCharacterControl = GetComponent <AICharacterControl>();
 }
Exemple #8
0
 // Use this for initialization
 void Start()
 {
     player              = GameObject.FindObjectOfType <Player>();
     aICharacterControl  = GetComponent <AICharacterControl>();
     currentHealthPoints = maxHealthPoints;
 }