static void DrawGizmo(Decal decal, GizmoType type) { if (DecalManager.DrawDecalGizmos) { DrawGizmo(decal.gameObject, type, 0.0f); } }
public override void OnInspectorGUI() { Decal script = (Decal)target; if (GUILayout.Button("Align")) { script.AlignDecal(); } }