Esempio n. 1
0
 private void HandleKeyInputs()
 {
     if (Input.GetKeyDown(SaveLog))
     {
         Debug.Log("Saving...");
         string path = log.SaveToNewFile();
         Debug.Log("File save to: " + path);
     }
     if (Input.GetKeyDown(ResetLog))
     {
         isStartBags = false;
         log.Reset();
         Debug.Log("Log clean");
     }
     if (Input.GetKeyDown(PrintSpace))
     {
         isStartBags = !isStartBags;
         log.Add(isStartBags ? startStr : finishStr);
         Debug.Log(isStartBags ? startStr : finishStr);
     }
 }