This commit is contained in:
2025-05-13 03:19:28 +03:00
parent e2847b060d
commit 762dcf4524
784 changed files with 542617 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
using UnityEngine;
using UnityEditor;
using System.Collections;
[ExecuteInEditMode]
public class CarDebug : MonoBehaviour {
public bool showTorquePlot = true;
public bool showHpPlot = true;
void OnDrawGizmosSelected(){
if (enabled) {
var car = GetComponent<Car> ();
if (car != null) {
if(car.engine != null){
Handles.BeginGUI ();
Handles.EndGUI ();
}
}
}
}
}