コード例 #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;
                }
            }
        }
コード例 #2
0
 public void chooseScheme(int first)
 {
     _firstCore.SelectState(first.ToString());
 }
コード例 #3
0
 public void SelectPrep(int id)
 {
     _coreScheme.SelectState(id.ToString());
 }
コード例 #4
0
 public void pressButtonInfo()
 {
     _coreInfo.SelectState(_currPrep.ToString());
 }