Skip to content

Commit a1837ad

Browse files
author
guanghui-zhang
committed
Update CharacterInputController.cs ,EndlessRunner can operate at mobile phone now
1 parent d043288 commit a1837ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/Scripts/Characters/CharacterInputController.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ protected void Update ()
180180
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_WEBGL
181181
// Use key input in editor or standalone
182182
// disabled if it's tutorial and not thecurrent right tutorial level (see func TutorialMoveCheck)
183-
184183
if (Input.GetKeyDown(KeyCode.LeftArrow) && TutorialMoveCheck(0))
185184
{
186185
ChangeLane(-1);
@@ -198,7 +197,9 @@ protected void Update ()
198197
if(!m_Sliding)
199198
Slide();
200199
}
201-
#else
200+
#endif
201+
202+
#if UNITY_ANDROID || UNITY_IOS || UNITY_IPHONE || UNITY_WEBGL
202203
// Use touch input on mobile
203204
if (Input.touchCount == 1)
204205
{

0 commit comments

Comments
 (0)