//マウスの入力処理 void MouseOperation() { if (UtageToolKit.IsPlatformStandAloneOrEditor() || Application.isWebPlayer) { if (null == touchesMouse) { return; } if (!Input.mousePresent) { return; } Vector3 point = cachedCamera.ScreenToWorldPoint(Input.mousePosition); //有効なボタンだけ処理する if (isEnableMouseButtonLeft) { MouseOperation(0, point); } if (isEnableMouseButtonRight) { MouseOperation(1, point); } if (isEnableMouseButtonCenter) { MouseOperation(2, point); } MouseMove(); } }
public static bool IsInputKeyboadReturnDown() { if (UtageToolKit.IsPlatformStandAloneOrEditor() || EnableWebGLInput()) { return(Input.GetKeyDown(KeyCode.Return)); } else { return(false); } }
public static bool IsInputControl() { if (UtageToolKit.IsPlatformStandAloneOrEditor() || EnableWebGLInput()) { return(Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl)); } else { return(false); } }
public static bool IsMouseRightButtonDown() { if (UtageToolKit.IsPlatformStandAloneOrEditor() || EnableWebGLInput()) { return(Input.GetMouseButtonDown(1)); } else { return(false); } }
//データを設定 void SetData(AdvConfigSaveData data, bool isSetDefault) { if (UtageToolKit.IsPlatformStandAloneOrEditor()) { //PC版のみ、フルスクリーン切り替え IsFullScreen = data.isFullScreen; } IsMouseWheelSendMessage = data.isMouseWheelSendMessage; //エフェクトON・OFF切り替え IsEffect = data.isEffect; //未読スキップON・OFF切り替え IsSkipUnread = data.isSkipUnread; //選択肢でスキップ解除ON・OFF切り替え IsStopSkipInSelection = data.isStopSkipInSelection; //文字送り速度 MessageSpeed = data.messageSpeed; //オート改ページ速度 AutoBrPageSpeed = data.autoBrPageSpeed; //メッセージウィンドウの透過色 MessageWindowTransparency = data.messageWindowTransparency; //音量設定 サウンド全体 SoundMasterVolume = data.soundMasterVolume; //音量設定 BGM BgmVolume = data.bgmVolume; //音量設定 SE SeVolume = data.seVolume; //音量設定 環境音 AmbienceVolume = data.ambienceVolume; //音量設定 ボイス VoiceVolume = data.voiceVolume; //音声設定(クリックで停止、次の音声まで再生を続ける) VoiceStopType = data.voiceStopType; if (!isSetDefault) { //コンフィグ例外(コンフィグ画面でのデフォルトに戻すに関与しない) IsAutoBrPage = data.isAutoBrPage; //オート改ページ } //既読メッセージの表示スピード MessageSpeedRead = data.messageSpeedRead; //ボイス再生時にメッセージウィンドウを非表示に HideMessageWindowOnPlayingVoice = data.hideMessageWindowOnPlayingVoice; //キャラ別のボイス設定などのタグつきボリューム current.taggedMasterVolumeList.Clear(); int num = data.taggedMasterVolumeList.Count; for (int i = 0; i < num; i++) { SetTaggedMasterVolume(data.taggedMasterVolumeList[i].tag, data.taggedMasterVolumeList[i].volume); } }
//データを設定 void SetData(AdvConfigSaveData data, bool isSetDefault) { if (UtageToolKit.IsPlatformStandAloneOrEditor()) { //PC版のみ、フルスクリーン切り替え IsFullScreen = data.isFullScreen; } IsMouseWheelSendMessage = data.isMouseWheelSendMessage; //エフェクトON・OFF切り替え IsEffect = data.isEffect; //未読スキップON・OFF切り替え IsSkipUnread = data.isSkipUnread; //選択肢でスキップ解除ON・OFF切り替え IsStopSkipInSelection = data.isStopSkipInSelection; //文字送り速度 MessageSpeed = data.messageSpeed; //オート改ページ速度 AutoBrPageSpeed = data.autoBrPageSpeed; //メッセージウィンドウの透過色 MessageWindowTransparency = data.messageWindowTransparency; //音量設定 サウンド全体 SoundMasterVolume = data.soundMasterVolume; //音量設定 BGM BgmVolume = data.bgmVolume; //音量設定 SE SeVolume = data.seVolume; //音量設定 環境音 AmbienceVolume = data.ambienceVolume; //音量設定 ボイス VoiceVolume = data.voiceVolume; //音声設定(クリックで停止、次の音声まで再生を続ける) VoiceStopType = data.voiceStopType; int max = data.isVoiceActiveArray.Length; current.isVoiceActiveArray = new bool[max]; for (int i = 0; i < max; i++) { SetVoiceActive(i, data.isVoiceActiveArray[i]); } if (!isSetDefault) { //コンフィグ例外(コンフィグ画面でのデフォルトに戻すに関与しない) IsAutoBrPage = data.isAutoBrPage; //オート改ページ } }
private void SetData(AdvConfigSaveData data, bool isSetDefault) { if (UtageToolKit.IsPlatformStandAloneOrEditor()) { if (this.dontSaveFullScreen) { this.IsFullScreen = Screen.get_fullScreen(); } else { this.IsFullScreen = data.isFullScreen; } } this.IsMouseWheelSendMessage = data.isMouseWheelSendMessage; this.IsEffect = data.isEffect; this.IsSkipUnread = data.isSkipUnread; this.IsStopSkipInSelection = data.isStopSkipInSelection; this.MessageSpeed = data.messageSpeed; this.AutoBrPageSpeed = data.autoBrPageSpeed; this.MessageWindowTransparency = data.messageWindowTransparency; this.SoundMasterVolume = data.soundMasterVolume; this.BgmVolume = data.bgmVolume; this.SeVolume = data.seVolume; this.AmbienceVolume = data.ambienceVolume; this.VoiceVolume = data.voiceVolume; this.VoiceStopType = data.voiceStopType; if (!isSetDefault) { this.IsAutoBrPage = data.isAutoBrPage; } this.MessageSpeedRead = data.messageSpeedRead; this.HideMessageWindowOnPlayingVoice = data.hideMessageWindowOnPlayingVoice; this.IsPlayingTextSound = data.isPlayingTextSound; this.current.taggedMasterVolumeList.Clear(); int count = data.taggedMasterVolumeList.Count; for (int i = 0; i < count; i++) { this.SetTaggedMasterVolume(data.taggedMasterVolumeList[i].tag, data.taggedMasterVolumeList[i].volume); } }
public static bool IsInputControl() { return(UtageToolKit.IsPlatformStandAloneOrEditor() && (Input.GetKey(0x132) || Input.GetKey(0x131))); }
public static bool IsMouseRightButtonDown() { return(UtageToolKit.IsPlatformStandAloneOrEditor() && Input.GetMouseButtonDown(1)); }
public static bool IsInputKeyboadReturnDown() { return(UtageToolKit.IsPlatformStandAloneOrEditor() && Input.GetKeyDown(13)); }