예제 #1
0
 public static void UpdateGunShot(MyEntity physObject, MyTrailerGunsShotTypeEnum gunShot)
 {
     //  This method will be called even on not-tracker objects, so here we check if we need to store data about this one
     MyPhysObjectTrackedTickData tickData = InsertActiveTick(physObject);
     if (tickData != null)
     {
         tickData.GunShot = gunShot;
     }
 }
예제 #2
0
        public static void UpdateGunShot(MyEntity physObject, MyTrailerGunsShotTypeEnum gunShot)
        {
            //  This method will be called even on not-tracker objects, so here we check if we need to store data about this one
            MyPhysObjectTrackedTickData tickData = InsertActiveTick(physObject);

            if (tickData != null)
            {
                tickData.GunShot = gunShot;
            }
        }