Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.K))
     {
         Debug.Log("Killed"); moveCom.Dispose(); moveCom = null;
     }
     if (Input.GetKeyDown(KeyCode.G))
     {
         System.GC.Collect();
     }
     if (Input.GetKeyDown(KeyCode.E))
     {
         moveCom.Enabled = false;
     }
     if (Input.GetKeyDown(KeyCode.Q))
     {
         moveCom.Enabled = true;
     }
 }