示例#1
0
        public static void BindKey(int id)
        {
            if (current != null)
            {
                Debug.Log("Tried to bind key but key binder is in use.");
                return;
            }

            current    = new GameObject().AddComponent <BDKeyBinder>();
            current.id = id;
            current.StartRecording();
        }
示例#2
0
		public static void BindKey(int id)
		{
			if(current != null)
			{
				Debug.Log("Tried to bind key but key binder is in use.");
				return;
			}

			current = new GameObject().AddComponent<BDKeyBinder>();
			current.id = id;
			current.StartRecording();
		}
示例#3
0
 public bool AcquireInputString(out string _inputString)
 {
     if (valid)
     {
         _inputString = inputString;
         current      = null;
         Destroy(gameObject);
         return(true);
     }
     else
     {
         _inputString = string.Empty;
         return(false);
     }
 }
示例#4
0
		public bool AcquireInputString(out string _inputString)
		{
			if(valid)
			{
				_inputString = inputString;
				current = null;
				Destroy(gameObject);
				return true;
			}
			else
			{
				_inputString = string.Empty;
				return false;
			}
		}