Example #1
0
 /// <summary>
 /// Stop managing an object
 /// </summary>
 /// <param name="tr"></param>
 public static void Remove(FloatingTransform tr)
 {
     if (instance)
     {
         instance.RemoveTransform(tr);
     }
 }
Example #2
0
 /// <summary>
 /// Manage a new object
 /// </summary>
 /// <param name="tr"></param>
 public static void Add(FloatingTransform tr)
 {
     if (instance)
     {
         instance.AddTransform(tr);
     }
 }
 /// <summary>
 /// Set a floating transform as the parent of this one. This effects position only
 /// </summary>
 /// <param name="parent"></param>
 public void SetParent(FloatingTransform parent)
 {
     this.parent = parent;
     UpdateUnityPosition();
 }
Example #4
0
 /// <summary>
 /// Stop managing an object
 /// </summary>
 /// <param name="tr"></param>
 public void RemoveTransform(FloatingTransform tr)
 {
     monitored.Remove(tr);
 }
Example #5
0
 /// <summary>
 /// Manage a new object
 /// </summary>
 /// <param name="tr"></param>
 public void AddTransform(FloatingTransform tr)
 {
     monitored.Add(tr);
 }