Exemplo n.º 1
0
 private void Awake()
 {
     _characterController = GetComponent <CharacterController>();
     _controller          = GetComponent <Controller>();
     _characterAnimator   = GetComponent <CharacterAnimator>();
     source = GetComponent <AudioSource>();
 }
Exemplo n.º 2
0
        private void Awake()
        {
            Controller.Init();
            Controller.Character = this;

            _characterController = GetComponent <CharacterController>();
            _characterAnimator   = GetComponent <CharacterAnimator>();
        }