mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Unity version check (#229)
* Check unity version * Simplify a little bit * Improve error message
This commit is contained in:
parent
c0658b2568
commit
92d35a6039
@ -58,6 +58,15 @@ public class NetworkManager : MonoBehaviour
|
||||
public virtual void Awake()
|
||||
{
|
||||
Debug.Log("Thank you for using Mirror! https://forum.unity.com/threads/mirror-networking-for-unity-aka-hlapi-community-edition.425437/");
|
||||
|
||||
if (Application.unityVersion.CompareTo("2018.3") >= 0)
|
||||
{
|
||||
Debug.LogError(
|
||||
"This version of mirror is not compatible with Unity 2018.3 and up. " +
|
||||
"Please use unity 2017.4, 2018.1, 2018.2 or use the 2018 mirror branch " +
|
||||
"https://github.com/vis2k/Mirror/tree/2018");
|
||||
}
|
||||
|
||||
InitializeSingleton();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user