*
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.Collections;
|
||||
|
||||
[CustomEditor(typeof(BrushDcMotor))]
|
||||
public class BrushDcMotorDebug : Editor {
|
||||
|
||||
public override void OnInspectorGUI() {
|
||||
base.OnInspectorGUI();
|
||||
|
||||
|
||||
var motor = target as BrushDcMotor;
|
||||
if (GUILayout.Button("Reset state"))
|
||||
{
|
||||
motor.angularSpeedRPM = 0;
|
||||
motor.angularSpeedRPS = 0;
|
||||
motor.current = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ca39fde841ad1a741b2c15978b88ae36
|
||||
timeCreated: 1454239743
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user