Esempio n. 1
0
        private static string findButtonName(ButtonTypes type, ControllerPlayers player, out InputExButtonMap mapping)
        {
            foreach (var map in ButtonMappings)
            {
                if (map.Type == type && map.Player == player)
                {
                    mapping = map;
                    return(map.Name);
                }
            }

            Debug.LogError(string.Format("Failed to find Button {0} for Player {1}", type, player));
            mapping = null;
            return("Unknown");
        }
Esempio n. 2
0
		private static string findButtonName(ButtonTypes type, ControllerPlayers player, out InputExButtonMap mapping)
		{
			foreach (var map in ButtonMappings)
			{
				if (map.Type == type && map.Player == player)
				{
					mapping = map;
					return map.Name;
				}
			}

			Debug.LogError(string.Format("Failed to find Button {0} for Player {1}", type, player));
			mapping = null;
			return "Unknown";
		}