private void OnEnable() { _actionControl = new FirstPersonActionControl(); _actionControl.Character.SetCallbacks(this); _actionControl.Character.Enable(); }
void OnEnable() { if (_actionControl == null) { _actionControl = new FirstPersonActionControl(); _actionControl.MouseMove.SetCallbacks(this); } _actionControl.MouseMove.Enable(); }