Skip to content

Commit

Permalink
LuaScriptController 将只能在 Windows 平台上运行的示例代码区分开来
Browse files Browse the repository at this point in the history
  • Loading branch information
xebecnan committed Jun 9, 2014
1 parent 17c7531 commit 407fcfb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Assets/Behaviour/LuaScriptController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ void Awake() {
CallMethod( AwakeRef );
}

// AssetBundle testx.unity3d is built for StandaloneWindows
#if UNITY_STANDALONE
IEnumerator Start() {
CallMethod( StartRef );

Expand All @@ -68,6 +70,11 @@ IEnumerator Start() {
Debug.Log("---- call done ----");
}
}
#else
void Start() {
CallMethod( StartRef );
}
#endif

void Update() {
CallMethod( UpdateRef );
Expand Down

0 comments on commit 407fcfb

Please sign in to comment.