//----------------------------------------------
// Realistic Car Controller
//
// Copyright © 2014 - 2023 BoneCracker Games
// https://www.bonecrackergames.com
// Buğra Özdoğanlar
//
//----------------------------------------------
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.EventSystems;
///
/// UI buttons used in options panel. It has an enum for all kind of buttons.
///
[AddComponentMenu("BoneCracker Games/Realistic Car Controller/UI/RCC UI Dashboard Button")]
public class RCC_UIDashboardButton : MonoBehaviour, IPointerClickHandler {
private Button button; // Button.
public ButtonType _buttonType = ButtonType.ABS; // Type of the button.
public enum ButtonType { Start, ABS, ESP, TCS, Headlights, LeftIndicator, RightIndicator, Gear, Low, Med, High, SH, GearUp, GearDown, HazardLights, SlowMo, Record, Replay, Neutral, ChangeCamera };
private Scrollbar gearSlider;
public int gearDirection = 0;
///
/// When clicked.
///
///
public void OnPointerClick(PointerEventData eventData) {
OnClicked();
}
private void Awake() {
button = GetComponent