Exemple #1
0
    protected override void OnTouch(object sender, InfoEventArgs <Touch[]> info)
    {
        Touch[] touches = info.Arg0;

        if (touches.Length > 0)
        {
            Touch firstTouch = touches[0];

            if (firstTouch.phase == TouchPhase.Began)
            {
                int input = firstTouch.position.x < Screen.width / 2 ? -1 : 1;
                Conductor.AsessInput(input);
            }
        }
    }
Exemple #2
0
    protected override void OnTest(object sender, InfoEventArgs <int> info)
    {
        int input = info.Arg0;

        Conductor.AsessInput(input);
    }