mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[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:
parent
d61782201f
commit
bc6132b051
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user