Exemplo n.º 1
0
        private void Awake()
        {
            _anim      = GetComponentInChildren <AnimationHandler>();
            _move      = GetComponent <CharacterMovement>();
            _stats     = GetComponent <CharacterStats>();
            _coll      = GetComponent <CollisionHandler>();
            _weaponInv = GetComponent <WeaponInventory>();
            _input     = GetComponent <IInputController>();
            //_contrVib = GetComponent<ControllerVibration>();

            _coll.OnGrounded += () => _isDiveKicking = false;
        }
Exemplo n.º 2
0
        private void Start()
        {
            _anim     = GetComponent <Animator>();
            _move     = GetComponentInParent <CharacterMovement>();
            _coll     = GetComponentInParent <CollisionHandler>();
            _renderer = GetComponent <SpriteRenderer>();
            _atttack  = GetComponent <CharacterAttackManager>();

            _previousFlipState = _move.Side == 1 ? false : true;

            GetComponent <CollisionHandler>().OnGrounded += () => { _anim.ResetTrigger(_decelerationTrigger); };
        }
Exemplo n.º 3
0
 private void Awake()
 {
     _character = GetComponentInParent <CharacterMovement>();
     //this.transform.position = Vector3.zero;
 }
Exemplo n.º 4
0
 private void Awake()
 {
     _move = GetComponent <CharacterMovement>();
 }
Exemplo n.º 5
0
 private void Awake()
 {
     _coll = GetComponent <CollisionHandler>();
     _move = GetComponent <CharacterMovement>();
 }