-
Notifications
You must be signed in to change notification settings - Fork 335
List of APIs
314pies edited this page Sep 3, 2020
·
5 revisions
Will return true if this is a clone project, else false.
Here's an example usage:
// This should be editor only
#if UNITY_EDITOR
using UnityEngine;
using ParrelSync;
public class MyMultiplayerTestScript: MonoBehaviour
{
void Start()
{
if (ClonesManager.IsClone())
{
// This is a clone project, connect to local host
}
else
{
// This is the original project, start server
}
}
}
#endif
Will return the custom argument of the cloned project.
Check out the Argument page for more details.