private void OnEnable()
    {
        if (_inputAction == null)
        {
            _inputAction = new GameInputAction();
        }

        _inputAction.Player.SetCallbacks(this);
        _inputAction.Player.Enable();
    }
Beispiel #2
0
        private void OnEnable()
        {
            if (_inputAction == null)
            {
                _inputAction = new GameInputAction();
            }

            // Action 맵에 따라 활성/비활성 가능
            _inputAction.Fps.Enable();
            // 콜백 메소드가 존재하는 인스턴스 등록
            _inputAction.Fps.SetCallbacks(this);
        }
Beispiel #3
0
 private void Awake()
 {
     instance            = this;
     characterController = GetComponent <CharacterController>();
     inputActions        = new GameInputAction();
 }