This commit is contained in:
changyunjia
2026-05-11 16:14:14 +08:00
parent 4f7eabd11f
commit 6028048b78
3 changed files with 20 additions and 20 deletions
+16 -16
View File
@@ -523,18 +523,18 @@ namespace DontConfuse
}
EndLoop: Debug.Log("");
if (click_card)
{
if (orthoCamera == null) orthoCamera = GameObject.Find("GameCamera").GetComponent<Camera>();
Ray ray = orthoCamera.ScreenPointToRay(new Vector2(float.Parse(a[0]) * Screen.width, (1 - float.Parse(a[1])) * Screen.height));
RaycastHit hit;
int layerMask = 1 << 6;
// if (click_card)
// {
// if (orthoCamera == null) orthoCamera = GameObject.Find("GameCamera").GetComponent<Camera>();
// Ray ray = orthoCamera.ScreenPointToRay(new Vector2(float.Parse(a[0]) * Screen.width, (1 - float.Parse(a[1])) * Screen.height));
// RaycastHit hit;
// int layerMask = 1 << 6;
if (Physics.Raycast(ray, out hit, Mathf.Infinity, layerMask))
{
// GameDispatcher.Instance.Dispatch(GameMsg.card_click, hit.collider.gameObject.name);
}
}
// if (Physics.Raycast(ray, out hit, Mathf.Infinity, layerMask))
// {
// // GameDispatcher.Instance.Dispatch(GameMsg.card_click, hit.collider.gameObject.name);
// }
// }
}
}
@@ -683,11 +683,11 @@ namespace DontConfuse
if (i != 0) darkWVRefreshtime_str += "|";
darkWVRefreshtime_str += ConfigSystem.GetConfig<CommonModel>().darkWVRefreshtime[i].ToString();
}
// for (int i = 0; i < ConfigSystem.GetConfig<CommonModel>().darkWVRefreshtime2.Length; i++)
// {
// darkWVRefreshtime_str += "|";
// darkWVRefreshtime_str += ConfigSystem.GetConfig<CommonModel>().darkWVRefreshtime2[i].ToString();
// }
for (int i = 0; i < ConfigSystem.GetConfig<CommonModel>().darkWVRefreshtime2.Length; i++)
{
darkWVRefreshtime_str += "|";
darkWVRefreshtime_str += ConfigSystem.GetConfig<CommonModel>().darkWVRefreshtime2[i].ToString();
}
Debug.Log("--------------------------------");