Commit f6f70942 authored by wanqing's avatar wanqing

修改脚本

parent e8b42b47
......@@ -3,6 +3,7 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
using UnityEngine.EventSystems;
public class DecorateUI : MonoBehaviour
{
......@@ -170,7 +171,7 @@ public class DecorateUI : MonoBehaviour
{
m_StopStage1Action?.Invoke();
}
if (Input.GetMouseButton(0))
if (Input.GetMouseButton(0) && EventSystem.current.currentSelectedGameObject == null)
{
m_curStage1Progress += Time.deltaTime * 0.2f;
if (m_curStage1Progress > 1.0f)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment