How do I setup EasyCode?

To get started with EasyCode, you have a couple options.

1. Inherit from EasyManager.cs to access its methods. Only need 1 per scene.

// located at Assets/EasyCodeForVivox/Scripts/EasyBackend/EasyManager.cs

using EasyCodeForVivox;

public class VivoxManager : EasyManager
{

}
triangle-exclamation

2. Place an EasyManager.cs script on a Gameobject.

After that you can reference it by using [SerializedField]. Dont forget to drag and drop EasyManager gameobejct onto your script

3. You can also use GetComponent<EasyManager>(); if on the same Gameobject that has the EasyManager script or you can use FindObjectOfType<EasyManager>(); (this is the slower option)

4 . If you don't want to use EasyManager you can use dependency injection (Read more here) to inject EasyCode scripts into your classes

Last updated