Example #1
0
    public void OnPointerUpDelegate(PointerEventData data)
    {
        if (carController == null)
        {
            carController = grpInputs.carController;
        }

        if (btn_Left)
        {
            carController.Btn_LeftDeactivate();
        }
        if (btn_Right)
        {
            carController.Btn_RightDeactivate();
        }
        if (btn_Accelerate)
        {
            carController.Btn_AccelerationDeactivate();
        }
        if (btn_Break)
        {
            carController.Btn_BreakDeactivate();
        }
    }