Example #1
0
        public uint CreateNavigationArrow(uint ownerID, Vector3 pos, Vector3 forward)
        {
            BaseMonoDynamicObject obj2 = this.CreateDynamicObjectEntityInstance(ownerID, "NavigationArrow", pos, forward, this.GetNextNonSyncedDynamicObjectRuntimeID());

            obj2.dynamicType = BaseMonoDynamicObject.DynamicType.NavigationArrow;
            return(obj2.GetRuntimeID());
        }
Example #2
0
 private void RemoveAllRemoveables()
 {
     for (int i = 0; i < this._dynamicLs.Count; i++)
     {
         BaseMonoDynamicObject obj2 = this._dynamicLs[i];
         if (obj2.IsToBeRemove())
         {
             this.RemoveDynamicObjectByRuntimeID(obj2.GetRuntimeID(), i);
             i--;
         }
     }
 }
Example #3
0
 public void RemoveAllDynamicObjects()
 {
     for (int i = 0; i < this._dynamicLs.Count; i++)
     {
         BaseMonoDynamicObject obj2 = this._dynamicLs[i];
         if (!obj2.IsToBeRemove())
         {
             obj2.SetDied();
         }
         this.RemoveDynamicObjectByRuntimeID(obj2.GetRuntimeID(), i);
         i--;
     }
 }