Esempio n. 1
0
 void Start()
 {
     playerManager  = GetComponent <PlayerManager>();
     rigidbody      = GetComponent <Rigidbody>();
     inputHandler   = GetComponent <InputHandler>();
     animtorHandler = GetComponentInChildren <AnimatorHandler>();
     cameraObject   = Camera.main.transform;
     myTransform    = transform;
     animtorHandler.Initialize();
     playerManager.isGrounded = true;
     ignoreForGroundCheck     = ~(1 << 8 | 1 << 11);
 }
Esempio n. 2
0
 private void Awake()
 {
     animatorHandler = GetComponentInChildren <AnimatorHandler>();
     healthBar       = FindObjectOfType <HealthBar>();
     staminaBar      = FindObjectOfType <StaminaBar>();
 }
Esempio n. 3
0
 private void Awake()
 {
     animatorHandler   = GetComponentInChildren <AnimatorHandler>();
     weaponSlotManager = GetComponentInChildren <WeaponSlotManager>();
     inputHandler      = GetComponent <InputHandler>();
 }