Пример #1
0
 public void SwitchContext(IInputContext newContext)
 {
     // TODO: Keep track of previous context so SwitchContextToPrevious();
     activeContext.OnExit();
     newContext.OnEnter();
     contextToSwitchTo = newContext;
 }