Ejemplo n.º 1
0
        private void Awake()
        {
            animator              = GetComponent <Animator>();
            mover                 = GetComponent <PlayerMover>();
            inventory             = GetComponent <PlayerInventory>();
            managerUI             = GameObject.Find("UI").GetComponent <UIManager>();
            playerCamera          = GetComponent <PlayerCinemachineCamera>();
            playerEnvironment     = GetComponent <PlayerEnvironmentInteraction>();
            attackArea            = transform.Find("MeeleAttackArea").GetComponent <BoxCollider>();
            shieldCenter          = transform.Find("ShieldCenter").gameObject;
            backWeaponHolder      = transform.Find("Root/Hips/Spine_01/Spine_02/Spine_03/WeaponContainer/BackWeapon");
            backWeaponCoverHolder = transform.Find("Root/Hips/Spine_01/Spine_02/Spine_03/WeaponContainer/WeaponCover");

            inventory.OnWeaponEquip              += ChangeBackWeapon;
            inventory.OnSpellEquip               += ChangeSpell;
            playerEnvironment.OnMeditationStart  += MeditationStartProcessing;
            playerEnvironment.OnMeditationFinish += MeditationFinishProcessing;
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     managerUI      = GameObject.Find("UI").GetComponent <UIManager>();
     cinemachineCam = this.transform.GetComponent <PlayerCinemachineCamera>();
 }