Beispiel #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");
 }
Beispiel #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;
        }
Beispiel #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;
 }
Beispiel #5
0
        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;
        }
Beispiel #6
0
 void Start()
 {
     player              = GameObject.FindGameObjectWithTag("Player");
     aiCharacterControl  = GetComponent <AICharacterControl>();
     currentHealthPoints = maxHealthPoints;
 }
Beispiel #7
0
 private void Start()
 {
     player             = GameObject.FindGameObjectWithTag("Player");
     aiCharacterControl = GetComponent <AICharacterControl>();
 }
Beispiel #8
0
 // Use this for initialization
 void Start()
 {
     player              = GameObject.FindObjectOfType <Player>();
     aICharacterControl  = GetComponent <AICharacterControl>();
     currentHealthPoints = maxHealthPoints;
 }