坐標(biāo)動(dòng)畫2期
? ?protected override void OnPopulateMesh(VertexHelper vh)
? ?{
? ? ? ?vh.Clear();
? ?}
? ?#endregion
? ?public override bool IsRaycastLocationValid(Vector2 screenPoint, Camera eventCamera)
? ?{
? ? ? ?if (UICollider2D != null)
? ? ? ?{
? ? ? ? ? ?return UICollider2D.OverlapPoint(eventCamera.ScreenToWorldPoint(screenPoint));
? ? ? ?}
? ? ? ?else
? ? ? ?{
? ? ? ? ? ?return base.IsRaycastLocationValid(screenPoint, eventCamera);
? ? ? ?}
? ?}
標(biāo)簽: