public void OnClick() { buildmode = !buildmode; // shelves.SetActive(buildmode); if (buildmode) { cursor.setMode(cursor_handle.MODE.BUILD); // this.GetComponent<Button> ().colors.normalColor = Color.white; } else { cursor.setMode(cursor_handle.MODE.DEFAULT); // this.GetComponent<Button> ().colors.normalColor = new Color(0.7f, 0.7f, 0.7f, 1.0f); } }
public void resetModes() { cursor.setMode(cursor_handle.MODE.DEFAULT); cursor.PowerBuild.StopBuildMode(); cursor.camera.transform.parent.GetComponent <camera_handle>().resetNavigation(); }