File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments