Beispiel #1
0
    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();
    }
Beispiel #2
0
 private void OnEnable()
 {
     controls.Enable();
 }