Exemplo n.º 1
0
 public void Open()
 {
     hScenes.Save();
     gameObject.SetActive(true);
     shield.OpenIgnoreTouch();
     model.ChangeMode((int)ThreeDModel.Mode.DEFAULT);
 }
Exemplo n.º 2
0
    public void SwitchSubMenu(int type)
    {
        if (type == (int)TYPE.HOLDOPERATION)
        {
            holdOpe.SetActive(true);
        }
        else
        {
            holdOpe.SetActive(false);
        }

        if (type == (int)TYPE.MODELSIZE)
        {
            model.SetActive(true);
            slider.SetActive(true);
            threeDModel.ChangeMode((int)ThreeDModel.Mode.MODEL_SIZE);
        }
        else
        {
            model.SetActive(false);
            slider.SetActive(false);
            threeDModel.ChangeMode((int)ThreeDModel.Mode.DEFAULT);
        }

        if (type == (int)TYPE.INCLINE)
        {
            inclineObj.SetActive(true);
        }
        else
        {
            inclineObj.SetActive(false);
        }
        curType = type;
        observer.ReleaseFocus();
    }
Exemplo n.º 3
0
    public void SwitchPhase(int phase)
    {
        ReleaseFocus();

/*
 *              for(int i = 0 ; i < phaseArr.Length ; i++){
 *                      if (i == phase-1){
 *                              phaseArr[i].SetActive(true);
 *                      }else{
 *                              phaseArr[i].SetActive(false);
 *                      }
 *              }*/

        if (phase == (int)Observer.Phase.HOLD_EDIT)
        {
            phaseArr[(int)Observer.Phase.HOLD_EDIT].SetActive(true);
            phase1.SwitchSubMenu((int)Phase1.TYPE.DEFAULT);
        }
        else
        {
            phaseArr[(int)Observer.Phase.HOLD_EDIT].SetActive(false);
        }

        if (phase == (int)Observer.Phase.SCENE_EDIT)
        {
            phaseArr[(int)Observer.Phase.SCENE_EDIT].SetActive(true);
            threeDModel.ChangeMode((int)ThreeDModel.Mode.WINDOW);
        }
        else
        {
            phaseArr[(int)Observer.Phase.SCENE_EDIT].SetActive(false);
            threeDModel.ChangeMode((int)ThreeDModel.Mode.DEFAULT);
        }
        //GameObject.Find("Phase"+currentPhase).SetActive(false);
        //GameObject.Find("Phase"+phase).SetActive(true);
        currentPhase = phase;

        holds.SwitchPhase(phase);
    }