-
-
Save onmyway133/cf217fbf1ba04f460ff4970aafccff2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sugar { | |
public GameObject makeEventSystem() { | |
GameObject systemEventObject = new GameObject("EventSystem"); | |
EventSystem system = systemEventObject.AddComponent<EventSystem>(); | |
system.sendNavigationEvents = true; | |
StandaloneInputModule module = systemEventObject.AddComponent<StandaloneInputModule>(); | |
module.horizontalAxis = "Horizontal"; | |
module.verticalAxis = "Vertical"; | |
module.submitButton = "Submit"; | |
module.cancelButton = "Cancel"; | |
module.inputActionsPerSecond = 10; | |
module.repeatDelay = 0.5f; | |
module.forceModuleActive = false; | |
return systemEventObject; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment