提交 fa131611 编写于 作者: J Jakob Hunsballe

Make playmode tests available only in editor and standalone.

上级 9869a623
#if UNITY_EDITOR || UNITY_STANDALONE
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.TestTools;
......@@ -98,3 +99,4 @@ public IEnumerator AgentDoesNotAlignToSurfaceNextFrame()
GameObject.DestroyImmediate(surface.gameObject);
}
}
#endif
#if UNITY_EDITOR || UNITY_STANDALONE
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.TestTools;
......@@ -141,3 +142,4 @@ public static bool HasPathConnectingViaPoint(GameObject a, GameObject b, Vector3
return false;
}
}
#endif
#if UNITY_EDITOR || UNITY_STANDALONE
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.TestTools;
......@@ -108,3 +109,4 @@ public void ModifierOverrideAreaDoesNotAffectSibling()
GameObject.DestroyImmediate(siblingPlane);
}
}
#endif
#if UNITY_EDITOR || UNITY_STANDALONE
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.TestTools;
......@@ -67,3 +68,4 @@ public void BuildUsesOnlyIncludedModifierVolume()
Assert.IsTrue(NavMeshSurfaceTests.HasNavMeshAtOrigin(expectedAreaMask));
}
}
#endif
#if UNITY_EDITOR || UNITY_STANDALONE
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.TestTools;
......@@ -198,3 +199,4 @@ public static bool HasNavMeshAtOrigin(int areaMask = NavMesh.AllAreas, int agent
return NavMesh.SamplePosition(Vector3.zero, out hit, 0.1f, filter);
}
}
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册