Ejemplo n.º 1
0
        public static void BindKey(int id)
        {
            if (current != null)
            {
                Debug.Log("[BDArmory]: Tried to bind key but key binder is in use.");
                return;
            }

            current    = new GameObject().AddComponent <BDKeyBinder>();
            current.id = id;
            current.StartRecording();
        }
Ejemplo n.º 2
0
 public bool AcquireInputString(out string _inputString)
 {
     if (valid)
     {
         _inputString = inputString;
         current      = null;
         Destroy(gameObject);
         return(true);
     }
     else
     {
         _inputString = string.Empty;
         return(false);
     }
 }