How to Set Up the Sync Delegate

Step 1:

In your SkillzDelegate game object, make sure the SkillzDelegate script is still attached. If a script is no longer attached to it, attach the SkillzDelegate script that came with the Unity SDK you just downloaded to your project. You can also delete the SkillzDelegate game object and regenerate it again by clicking on Skillz > Generate Delegate in the Unity header toolbar.

Note: In the 19.0.x Skillz Unity SDK, you no longer have to edit the SkillzDelegate.cs file that’s attached to your SkillzDelegate game object.

Screen_Shot_2018-02-09_at_1.39.33_PM.png

 

Step 2:

Create your Sync Controller class which should implement the SkillzSyncDelegate interface.

Example:

public class GameSyncController : MonoBehaviour, SkillzSyncDelegate
{
}

 

Next Step: Handle Match Start