点击后 高亮和Tip消失
This commit is contained in:
parent
0374adf93c
commit
4704defe44
@ -155,7 +155,7 @@ namespace QFramework
|
|||||||
{
|
{
|
||||||
OnFinished = null;
|
OnFinished = null;
|
||||||
Deinited = true;
|
Deinited = true;
|
||||||
loader.Recycle2Cache();
|
loader?.Recycle2Cache();
|
||||||
mPool.Recycle(this);
|
mPool.Recycle(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,6 +40,15 @@ public class DeviceItem : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnMouseUpAsButton()
|
||||||
|
{
|
||||||
|
var effect = gameObject.GetComponent<HighlightEffect>();
|
||||||
|
if (effect != null)
|
||||||
|
{
|
||||||
|
effect.highlighted = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,4 +41,12 @@ public class TipItem : MonoBehaviour
|
|||||||
tip.Active(false);
|
tip.Active(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnMouseUpAsButton()
|
||||||
|
{
|
||||||
|
if (tip != null)
|
||||||
|
{
|
||||||
|
tip.Active(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user