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; } } }
public void chooseScheme(int first) { _firstCore.SelectState(first.ToString()); }
public void SelectPrep(int id) { _coreScheme.SelectState(id.ToString()); }
public void pressButtonInfo() { _coreInfo.SelectState(_currPrep.ToString()); }