Commit e13926b5 authored by lijin's avatar lijin

遮罩范围优化

parent 8cf86ccb
......@@ -21,7 +21,7 @@ public class MaskItem : MonoBehaviour
return;
}
Rect.sizeDelta += Time.deltaTime * Vector2.one * IsUse * 2f;
if (Rect.sizeDelta.x > IsUse * 1.05f && Rect.sizeDelta.y > IsUse * 1.05f)
if (Rect.sizeDelta.x > IsUse * 1.05f && Rect.sizeDelta.y > IsUse * 1.5f)
{
gameObject.SetActive(false);
IsUse = -1;
......
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