void Awake() { if (Ins == null) { Ins = this; } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); WSDebug myTarget = (WSDebug)target; if (GUILayout.Button("Apply")) { myTarget.Apply(); } if (GUILayout.Button("LoadAmbTest")) { AmbLoader.Ins.LoadAmb("characteramb"); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); WSDebug myTarget = (WSDebug)target; if (GUILayout.Button("Apply")) { myTarget.Apply(); } if (GUILayout.Button("Sync")) { myTarget.SyncAttr(); } if (GUILayout.Button("CalcMeshCount")) { myTarget.CalcMeshCount(); } if (GUILayout.Button("GenerateAllMaterial")) { myTarget.GenerateAll(); } }
void OnDestroy() { Ins = null; }
void Awake() { Ins = this; Opened = false; HiDebug.SetFontSize(35); }