[unity] Assign default struct values.

This prevents compiler errors with certain settings. Reproed in Unity 2017.3 beta
based on dddc1d3c67
@dorisugita
This commit is contained in:
John 2017-10-07 00:49:08 +08:00 committed by GitHub
parent d61782201f
commit bc6132b051

View File

@ -457,7 +457,7 @@ namespace Spine.Unity {
var skeleton = instruction.skeleton;
var drawOrderItems = skeleton.drawOrder.Items;
Color32 color;
Color32 color = default(Color32);
float skeletonA = skeleton.a * 255, skeletonR = skeleton.r, skeletonG = skeleton.g, skeletonB = skeleton.b;
Vector2 meshBoundsMin = this.meshBoundsMin, meshBoundsMax = this.meshBoundsMax;
@ -661,7 +661,7 @@ namespace Spine.Unity {
}
// Populate Verts
Color32 color;
Color32 color = default(Color32);
int vertexIndex = 0;
var tempVerts = this.tempVerts;