Первый коммит

This commit is contained in:
2024-04-20 11:16:35 +03:00
parent 284e0891d9
commit 2452b24ee5
5427 changed files with 4562744 additions and 0 deletions

View File

@ -0,0 +1,41 @@
//----------------------------------------------
// Realistic Car Controller
//
// Copyright © 2023 BoneCracker Games
// http://www.bonecrackergames.com
//
//----------------------------------------------
#pragma warning disable 0414
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
/// <summary>
/// Mobile UI Drag used for orbiting Showroom Camera.
/// </summary>
public class RCC_UI_MobileDrag : MonoBehaviour, IDragHandler, IEndDragHandler {
private RCC_ShowroomCamera showroomCamera;
private void Awake() {
showroomCamera = FindObjectOfType<RCC_ShowroomCamera>();
}
public void OnDrag(PointerEventData data) {
if (showroomCamera)
showroomCamera.OnDrag(data);
}
public void OnEndDrag(PointerEventData data) {
}
}