Пример #1
0
    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);
        }
    }
Пример #2
0
 public void resetModes()
 {
     cursor.setMode(cursor_handle.MODE.DEFAULT);
     cursor.PowerBuild.StopBuildMode();
     cursor.camera.transform.parent.GetComponent <camera_handle>().resetNavigation();
 }