コード例 #1
0
        private void OnEnable()
        {
            _actionControl = new FirstPersonActionControl();
            _actionControl.Character.SetCallbacks(this);

            _actionControl.Character.Enable();
        }
コード例 #2
0
        void OnEnable()
        {
            if (_actionControl == null)
            {
                _actionControl = new FirstPersonActionControl();
                _actionControl.MouseMove.SetCallbacks(this);
            }

            _actionControl.MouseMove.Enable();
        }