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

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,36 @@
//----------------------------------------------
// Realistic Car Controller
//
// Copyright © 2023 BoneCracker Games
// http://www.bonecrackergames.com
//
//----------------------------------------------
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
/// <summary>
/// UI change wheel button.
/// </summary>
[AddComponentMenu("BoneCracker Games/Realistic Car Controller/UI/Modification/RCC UI Wheel Button")]
public class RCC_UI_Wheel : MonoBehaviour {
public int wheelIndex = 0;
public void OnClick() {
RCC_CustomizationManager handler = RCC_CustomizationManager.Instance;
if (!handler) {
Debug.LogError("You are trying to customize the vehicle, but there is no ''RCC_CustomizationManager'' in your scene yet.");
return;
}
handler.ChangeWheels(wheelIndex);
}
}