protected override void Start() { base.Start(); if (Platform == Platforms.Android || Platform == Platforms.iOS || Options.TouchEmulation) { InitTouchInput(); } Input.Enabled = true; MonoDebugHud = new MonoDebugHud(this); MonoDebugHud.Show(); CreateScene(); SetupViewport(); _input = new TopDownInput(Input, new SimpleInputEnvironment(CameraNode.GetComponent <Camera>(), Graphics)); _cameraController = new TopDownCameraController(_input, Graphics, CameraNode); _input.Enable(); }
private void OnEnable() { controls.Enable(); }