public static string ConvertInputToReadableText(string customDescription, InputID inputId) { return(customDescription + " : " + ConvertInputConfigurationToAReadabledText(InputConfigurationGameObject.Get().InputConfiguration.ConfigurationInherentData[inputId])); }
public static string ConvertInputToReadableText(InputID inputId) { InputReadableText.TryGetValue(inputId, out string readableInputText); return(ConvertInputConfigurationToAReadabledText(InputConfigurationGameObject.Get().InputConfiguration.ConfigurationInherentData[inputId]) + " : " + readableInputText); }
public LocomotionTextModule(RectTransform ParentTransform) : base(ParentTransform) { this.InstanciatedText.text = InputConfigurationInherentData2ReadableText.ConvertInputConfigurationToAReadabledText(InputConfigurationGameObject.Get().InputConfiguration.ConfigurationInherentData[InputID.UP_DOWN_HOLD], ShowPressType: false) + ", " + InputConfigurationInherentData2ReadableText.ConvertInputConfigurationToAReadabledText(InputConfigurationGameObject.Get().InputConfiguration.ConfigurationInherentData[InputID.LEFT_DOWN_HOLD], ShowPressType: false) + ", " + InputConfigurationInherentData2ReadableText.ConvertInputConfigurationToAReadabledText(InputConfigurationGameObject.Get().InputConfiguration.ConfigurationInherentData[InputID.RIGHT_DOWN_HOLD], ShowPressType: false) + ", " + InputConfigurationInherentData2ReadableText.ConvertInputConfigurationToAReadabledText(InputConfigurationGameObject.Get().InputConfiguration.ConfigurationInherentData[InputID.DOWN_DOWN_HOLD], ShowPressType: false) + " : Movement."; }
public CameraTextModule(RectTransform ParentTransform) : base(ParentTransform) { this.InstanciatedText.text = InputConfigurationInherentData2ReadableText.ConvertInputConfigurationToAReadabledText(InputConfigurationGameObject.Get().InputConfiguration.ConfigurationInherentData[InputID.CAMERA_ROTATION_DOWN_HOLD]) + " + Mouse movement : Camera rotation." + "\r\n" + InputConfigurationInherentData2ReadableText.ConvertInputToReadableText(InputID.CAMERA_ZOOM); }
public void Init() { var playerPosition = GameObject.FindGameObjectWithTag(TagConstants.PLAYER_TAG).transform; var cameraPivotPoint = GameObject.FindGameObjectWithTag(TagConstants.CAMERA_PIVOT_POINT_TAG).transform; this.CameraFollowManager = new CameraFollowManager(playerPosition, cameraPivotPoint, CameraConfigurationGameObject.Get().CameraMovementConfiguration.CameraFollowManagerComponent); this.CameraOrientationManager = new CameraOrientationManager(cameraPivotPoint, GameInputManager.Get(), InputConfigurationGameObject.Get().CoreInputConfiguration); this.CameraZoomManager = new CameraZoomManager(Camera.main, GameInputManager.Get()); }