Exemple #1
0
 void Update()
 {
     if (QKey.SetKey())
     {
         return;
     }
     if (QKey.isKeyDown(QKey.Key.Escape))
     {
         QSettings.Instance.Enabled = false;
     }
 }
Exemple #2
0
 void Update()
 {
     if (QKey.isKeyDown(QKey.Key.Escape))
     {
         if (start != null)
         {
             StopCoroutine(start);
             QDebug.Log("Escape", "QSpaceCenter");
             DestroyThis();
         }
     }
 }