Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.C))
     {
         appState.ClearCache();
     }
     if (appState.Config == null)
     {
         return;
     }
     for (var i = 0; i < Mathf.Min(9, appState.Config.Views.Count); i++)
     {
         if (!Input.GetKeyDown(string.Format("{0}", i + 1)))
         {
             continue;
         }
         appState.Config.ActiveView = appState.Config.Views[i].Clone();
         appState.ResetMap();
         sessionMgr.UpdateView(appState.Config.ActiveView);
         return;
     }
 }