public CollisionData(Color PartColor, Color OrbColor, Part.PartFlashing PartFlashing)
        {
            if (PartColor == null)
            {
                throw new System.ArgumentNullException();
            }
            if (OrbColor == null)
            {
                throw new System.ArgumentNullException();
            }
            if (PartFlashing == null)
            {
                throw new System.ArgumentNullException();
            }

            this.PartColor = PartColor;
            this.OrbColor  = OrbColor;

            this.PartFlashing = PartFlashing;
        }
Beispiel #2
0
 void ColorsMismatch(Part.PartFlashing flashing)
 {
     Log.Message("Несовпадение цветов части и сферы.");
     flashing.Flash(false);
     OnMismatch?.Invoke();
 }
Beispiel #3
0
 void ColorsMatch(Part.PartFlashing flashing)
 {
     Log.Message("Совпадение цветов части и сферы!");
     flashing.Flash(true);
     OnMatch?.Invoke();
 }