public static void MakeBig(MenuCommand command)
    {
        //make sphere editable
        SphereAttributes sphere = (SphereAttributes)command.context;

        //change sphere scale
        sphere.sphereTrans.localScale = new Vector3(5, 5, 5);
    }
    public static void MakeDefault(MenuCommand command)
    {
        SphereAttributes sphere = (SphereAttributes)command.context;

        sphere.sphereTrans.localScale = new Vector3(1, 1, 1);
    }
    public static void MakeSmall(MenuCommand command)
    {
        SphereAttributes sphere = (SphereAttributes)command.context;

        sphere.sphereTrans.localScale = new Vector3(0.5f, 0.5f, 0.5f);
    }
Пример #4
0
 public Sphere(float _r, float _h, float _k, float _z)
 {
     Source = new SphereData(_r, _h, _k, _z);
     Attributes = new SphereAttributes();
 }