Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix: added warning when input system is wrong (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonTheSourcerer committed Feb 5, 2021
1 parent 4adb176 commit 3efa75b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Runtime/CourseController/AdvancedCourseController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public class AdvancedCourseController : MonoBehaviour

private void Awake()
{
#if ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER
Debug.LogError("The legacy input system is disabled and this course controller won't work properly. Go to 'Edit/Project Settings.../Player/Other Settings' and set 'Active Input Handling' to 'Both'");
#endif
// Get the current system language as default language.
selectedLanguage = LocalizationUtils.GetSystemLanguageAsTwoLetterIsoCode().ToUpper();

Expand Down

0 comments on commit 3efa75b

Please sign in to comment.