void OnMouseExit() { Status.PlayerStatus(false); if (!TurnAndPhase.OnField() && TurnAndPhase.OnPlayer()) { Floor.ResetPanel(); } }
//マウスオーバ void OnMouseEnter() { Music.PlaySE(Music.Clip.Dun); Status.PlayerStatus(true); if (!TurnAndPhase.OnField() && TurnAndPhase.OnPlayer()) { Floor.ShowSelecting(Unit.playerPosition, Unit.SumParameter(-1, Unit.StatusName.DIS)); } }
//マウスオーバ void OnMouseEnter() { Music.PlaySE(Music.Clip.Dun); Status.EnemyStatus(true, enemyID); if (!TurnAndPhase.OnField() && TurnAndPhase.OnPlayer()) { Floor.ShowSelecting(Unit.GetEnemyGamePosition(enemyID), Unit.enemyParameterList[enemyID][(int)Unit.StatusName.DIS]); } }
// Update is called once per frame void Update() { Vector2 vec = Input.mousePosition; //ホイール押下中のみカメラ移動 if (Input.GetMouseButton((int)Click.Wheel)) { transPosition = vec - position; GameCamera.TrackMouse(); } if (Input.GetMouseButtonUp((int)Click.Wheel)) { GameCamera.TrackStop(); } //右クリック if (Input.GetMouseButtonDown((int)Click.Right)) { if (!CheckMouseOutMenu()) { //メニュー上ならコマンドをソート Menu.SortMenu(); } else { if (TurnAndPhase.OnField()) { if (GameCamera.DoTrackPlayer()) { //コマンド中ならキャンセル TurnAndPhase.CancelAction(); } else { GameCamera.TrackPlayer(); } } else { //それ以外ならカメラをプレイヤーに返す GameCamera.TrackPlayer(); } } } float scroll = Input.GetAxis("Mouse ScrollWheel"); if (CheckMouseOutMenu()) { GameCamera.FrontBehind(scroll); } position = vec; }