// Update is called once per frame void Update() { float scroll = Input.GetAxis("Mouse ScrollWheel"); if (scroll != 0) { if (scroll > 0) { if (TestMain.GetCamera().orthographicSize > 25) { TestMain.GetCamera().orthographicSize -= 5; } } else { if (TestMain.GetCamera().orthographicSize < 200) { TestMain.GetCamera().orthographicSize += 5; } } } bool[] currMouseDown = new bool[] { Input.GetMouseButtonDown(0), Input.GetMouseButtonDown(1) }; if (currMouseDown[0] || currMouseDown[1]) { m_mode[(int)currMode].OnClick(currMouseDown); } else { m_mode[(int)currMode].OnHover(); } if (!mapLoaded) { mapLoaded = TestMain.GetMap().ExtendBound(ref bottomLeft, ref topRight); } }