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
{
}2. Place an EasyManager.cs script on a Gameobject.
EasyManager.cs script on a Gameobject.
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)
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