예제 #1
0
    public void OnPointerDownDelegate(PointerEventData data)
    {
        if (carController == null)
        {
            carController = grpInputs.carController;
        }

        if (btn_Left)
        {
            carController.Btn_LeftActivate();
        }
        if (btn_Right)
        {
            carController.Btn_RightActivate();
        }
        if (btn_Accelerate)
        {
            carController.Btn_AccelerationActivate();
        }
        if (btn_Break)
        {
            carController.Btn_BreakActivate();
        }
        if (btn_Respawn)
        {
            carController.Btn_Respawn();
        }
    }