Exemple #1
0
        public static void All(D2dDestructible.PaintType paint, Matrix4x4 matrix, Texture2D shape, Color color, int layerMask = -1)
        {
            var destructible = D2dDestructible.FirstInstance;

            for (var i = D2dDestructible.InstanceCount - 1; i >= 0; i--)
            {
                if (D2dHelper.IndexInMask(destructible.gameObject.layer, layerMask) == true)
                {
                    destructible.Paint(paint, matrix, shape, color);
                }

                destructible = destructible.NextInstance;
            }
        }
Exemple #2
0
 public static void All(D2dDestructible.PaintType paint, Vector2 position, Vector2 size, float angle, Texture2D shape, Color color, int layerMask = -1)
 {
     All(paint, CalculateMatrix(position, size, angle), shape, color, layerMask);
 }
Exemple #3
0
 public static void All(D2dDestructible.PaintType paint, Vector2 startPos, Vector2 endPos, float thickness, Texture2D shape, Color color, int layerMask = -1)
 {
     D2dStamp.All(paint, CalculateMatrix(startPos, endPos, thickness), shape, color, layerMask);
 }