Example #1
0
        public static void UpdateScale(float scale)
        {
            for (int i = 0; i < objects.Count; i++)
            {
                IJanusObject obj  = objects[i];
                UObject      uobj = (UObject)obj;
                if (!uobj)
                {
                    objects.RemoveAt(i);
                    i--;
                    continue;
                }

                obj.UpdateScale(scale);
            }
        }
Example #2
0
 /// <summary>
 /// Registers an object to be updated when the exporter needs
 /// (for now only when the user updates the scale)
 /// </summary>
 /// <param name="obj"></param>
 public static void RegisterObject(IJanusObject obj)
 {
     objects.Add(obj);
 }