Пример #1
0
 public DestructionInfo(Destroyable destroyed, DestroyedBy reason = DestroyedBy.ForceDestroy, Vector3 dir = default(Vector3), bool physics = false, bool forceDestroy = true, GameObject piecesLeft = null)
 {
     Destroyed       = destroyed;
     Reason          = reason;
     direction       = dir;
     ForceDestroy    = forceDestroy;
     destroyedPieces = piecesLeft;
     Destroyed       = destroyed;
     usePhysics      = physics;
 }
Пример #2
0
 public bool HasFlag(DestroyedBy checkHaveID)
 {
     return((CanBeDestroyedBy & checkHaveID) == checkHaveID);
 }