Esempio n. 1
0
        private void SelectState(TSSState state)
        {
            if (Application.isPlaying)
            {
                if (core.currentState == state)
                {
                    core.Close(state);
                    return;
                }

                core.SelectState(state);
                return;
            }

            if (core.currentState == state)
            {
                state.ActivateManualy(ActivationMode.closeBranchImmediately);
                core.currentState = null;
            }
            else
            {
                for (int i = 0; i < core.Count; i++)
                {
                    core[i].ActivateManualy(state == core[i]
                        ? ActivationMode.openBranchImmediately
                        : ActivationMode.closeBranchImmediately);

                    core.currentState = state;
                }
            }
        }
Esempio n. 2
0
 public void chooseScheme(int first)
 {
     _firstCore.SelectState(first.ToString());
 }
Esempio n. 3
0
 public void SelectPrep(int id)
 {
     _coreScheme.SelectState(id.ToString());
 }
Esempio n. 4
0
 public void pressButtonInfo()
 {
     _coreInfo.SelectState(_currPrep.ToString());
 }