Пример #1
0
 static void DrawGizmo(Decal decal, GizmoType type)
 {
     if (DecalManager.DrawDecalGizmos)
     {
         DrawGizmo(decal.gameObject, type, 0.0f);
     }
 }
Пример #2
0
        public override void OnInspectorGUI()
        {
            Decal script = (Decal)target;

            if (GUILayout.Button("Align"))
            {
                script.AlignDecal();
            }
        }