Пример #1
0
    private void Awake()
    {
        _animator             = GetComponent <Animator>();
        _rigidbody            = GetComponent <Rigidbody2D>();
        _reaperTransformation = GetComponent <ReaperTransformation>();

        _horizontalVelocityHash  = Animator.StringToHash(_horizontalVelocityName);
        _transformToSpectralHash = Animator.StringToHash(_transformToSpectralName);
    }
Пример #2
0
 private void Awake()
 {
     _rigidbody            = GetComponent <Rigidbody2D>();
     _reaperTransformation = GetComponent <ReaperTransformation>();
 }