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