You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
625 B
35 lines
625 B
using UnityEngine; |
|
using System.Collections; |
|
|
|
namespace Fungus |
|
{ |
|
|
|
public class SpritesTest : MonoBehaviour |
|
{ |
|
public SpriteRenderer sprite1; |
|
public SpriteRenderer sprite2; |
|
public SpriteRenderer sprite3; |
|
|
|
public void DoTest() |
|
{ |
|
if (sprite1 == null || |
|
sprite2 == null || |
|
sprite3 == null) |
|
{ |
|
IntegrationTest.Fail("A sprite property has not been set"); |
|
} |
|
|
|
if (sprite1.sortingOrder == 10 && |
|
sprite2.sortingOrder == 5 && |
|
sprite3.sortingOrder == 5) |
|
{ |
|
IntegrationTest.Pass(); |
|
} |
|
else |
|
{ |
|
IntegrationTest.Fail("Sprite order in layer not correct"); |
|
} |
|
} |
|
} |
|
|
|
} |