新玩法提交
This commit is contained in:
@@ -27,7 +27,7 @@ public class level1 : MonoBehaviour
|
||||
// {//iPad机型
|
||||
// size = 49.9f;
|
||||
// }
|
||||
Debug.Log(size+"////////////////");
|
||||
Debug.Log(size + "////////////////");
|
||||
orthoCamera.orthographicSize = size;
|
||||
}
|
||||
void Start()
|
||||
@@ -108,7 +108,7 @@ public class level1 : MonoBehaviour
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
if (Popup == null) Popup = GameObject.Find("Popup");
|
||||
if (Popup.transform.childCount != 0) return;
|
||||
if (Popup != null && Popup.transform.childCount != 0) return;
|
||||
Vector2 mousePos = cam.ScreenToWorldPoint(Input.mousePosition);
|
||||
RaycastHit2D[] hits = Physics2D.RaycastAll(mousePos, Vector2.zero);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user