*
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user