public override bool Inspector()
    {
        MegaBulge mod = (MegaBulge)target;

        EditorGUIUtility.LookLikeControls();
        mod.Amount      = EditorGUILayout.Vector3Field("Radius", mod.Amount);
        mod.FallOff     = EditorGUILayout.Vector3Field("Falloff", mod.FallOff);
        mod.LinkFallOff = EditorGUILayout.Toggle("Link Falloff", mod.LinkFallOff);
        return(false);
    }
Beispiel #2
0
    void Start()
    {
        defControl = controller.GetComponent<Deformation_control>();
        gRot.Set (0.0f, 0.0f, 0.0f);
        gRotInc.Set(0.0f,0.0f,0.45f);

         if ( !mbulg )
        {
            mbulg = GetComponent<MegaBulge>();
        }
    }