Skip to content

Commit 554cbbd

Browse files
committed
Replaced the test scripts with the examples from the README
1 parent fa69ff1 commit 554cbbd

File tree

13 files changed

+58
-59
lines changed

13 files changed

+58
-59
lines changed

Assets/AttributeTest1.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

Assets/AttributeTest2.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

Assets/AttributeTest3.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

Assets/AttributeTest4.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

Assets/Script1.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
// Let's say that this script has an execution order of 50
6+
// set from the Script Execution Order inspector in Unity
7+
public class Script1 : MonoBehaviour {
8+
void Start () {
9+
Debug.Log("First");
10+
}
11+
}
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Script2.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
// this script will have an execution order of 60 (50+10)
6+
[ExecuteAfter(typeof(Script1))]
7+
public class Script2 : MonoBehaviour {
8+
void Start () {
9+
Debug.Log("Second");
10+
}
11+
}
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Script3.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
// this script will have an execution order of 100
6+
[ExecutionOrder(100)]
7+
public class Script3 : MonoBehaviour {
8+
void Start () {
9+
Debug.Log("Third");
10+
}
11+
}
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)