Skip to content

Commit 27c208d

Browse files
committed
Minor string tweaks
1 parent 2ef8db6 commit 27c208d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Runtime/Axis.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public Axis(InputAction action)
7979
if (action == null)
8080
throw new System.ArgumentNullException("action");
8181
if (action.expectedControlType != "Axis")
82-
throw new System.ArgumentException("InputAction " + action.name + " does not have an expected Axis control type.");
82+
throw new System.ArgumentException(string.Format("InputAction {0} does not have an expected Axis control type.", action.name));
8383
SetInputAction(action);
8484
}
8585

@@ -244,7 +244,7 @@ public void RegisterInputAction(InputAction action)
244244
if (action == null)
245245
throw new System.ArgumentNullException("action");
246246
if (action.expectedControlType != "Axis")
247-
throw new System.ArgumentException("InputAction " + action.name + " does not have an expected Axis control type.");
247+
throw new System.ArgumentException(string.Format("InputAction {0} does not have an expected Axis control type.", action.name));
248248
SetInputAction(action);
249249
}
250250

Runtime/TwinAxes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public TwinAxes(InputAction action)
6060
if (action == null)
6161
throw new System.ArgumentNullException("action");
6262
if (action.expectedControlType != "Vector2")
63-
throw new System.ArgumentException("InputAction " + action.name + " does not have an expected Vector2 control type.");
63+
throw new System.ArgumentException(string.Format("InputAction {0} does not have an expected Vector2 control type.", action.name));
6464
SetInputAction(action);
6565
}
6666

@@ -98,7 +98,7 @@ public void RegisterInputAction(InputAction action)
9898
if (action == null)
9999
throw new System.ArgumentNullException("action");
100100
if (action.expectedControlType != "Vector2")
101-
throw new System.ArgumentException("InputAction " + action.name + " does not have an expected Vector2 control type.");
101+
throw new System.ArgumentException(string.Format("InputAction {0} does not have an expected Vector2 control type.", action.name));
102102
SetInputAction(action);
103103
}
104104

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.stephanhooft.input-processing",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"displayName": "Input Processing",
55
"description": "A package that contains helper classes to store and evaluate user input.",
66
"unity": "2020.3",

0 commit comments

Comments
 (0)