Ejemplo n.º 1
0
 public void Select(Garment g)
 {
     if (currentGarment != null)
     {
         currentGarment.Hide();
     }
     currentGarment = g;
     g.Show();
 }
Ejemplo n.º 2
0
        /*!
         * Hides the named garment if it is currently draped on the avatar.
         *
         * @see ShowGarment LoadGarment
         */
        public virtual void HideGarment(String name)
        {
            Garment g = closet.Find(name);

            if (g != null)
            {
                g.Hide();
            }
            else
            {
                SharedWorld.LogError("Cannot find garment " + name);
            }
        }