Exemple #1
0
        private void Update()
        {
            if (_isInited == false)
            {
                return;
            }
            _inputDirections = new Vector2(directionalJoystick.Horizontal, directionalJoystick.Vertical);
            NavMeshController.Move(transform, _inputDirections,
                                   playerObject.Energy.CurrentPoints > 0 ? characterRunSpeed : characterWalkSpeed);

            animatorController.OnMove(_inputDirections.magnitude, playerObject.Energy.CurrentPoints);

            inventory.UpdateItems();
            ActivateNPCs();
        }