//---------------------------------------------- // Realistic Car Controller // // Copyright © 2023 BoneCracker Games // http://www.bonecrackergames.com // //---------------------------------------------- using UnityEngine; using UnityEngine.UI; using System.Collections; /// /// UI change wheel button. /// [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); } }