解决大地图移动后选中线路不显示卡片
This commit is contained in:
1 parent
58fe43d59f
commit
a999bf1b72
4 files changed
+3024
-23
No files matched your search
@@ -231,8 +231,9 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,
|
||||
//{
|
||||
// position.y = position.z;
|
||||
//}
|
||||
#if !(UNITY_ANDROID || UNITY_IOS)
|
||||
this.Move(position);
|
||||
|
||||
#endif
|
||||
this.gameObject.SetActive(true);
|
||||
|
||||
//this.SetModel(model);
|
||||
@@ -254,6 +255,7 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,
|
||||
|
||||
public void Move(Vector3 position)
|
||||
{
|
||||
#if !(UNITY_ANDROID || UNITY_IOS)
|
||||
this.transform.position = position;
|
||||
|
||||
var localPosition = this.transform.localPosition;
|
||||
@@ -282,11 +284,16 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,
|
||||
this.transform.localScale = new Vector2(2, 2);
|
||||
|
||||
Debug.Log($"{ this.transform.localPosition.y }, { this.transform.localPosition.y }");
|
||||
#endif
|
||||
}
|
||||
|
||||
public void Hide()
|
||||
{
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
this.gameObject.SetActive(false);
|
||||
#else
|
||||
DestroyImmediate(this.gameObject);
|
||||
#endif
|
||||
}
|
||||
|
||||
public void OnPointerUp(PointerEventData eventData)
|
||||
|
||||
Reference in new issue
Block a user