[PluginReference] private static Plugin ServerRewards;
private class TestScript : MonoBehaviour
{
***
private void Awake()
{
var a = ServerRewards?.Call<object>("AddPoints", id, amount);
Puts($"Reward = {a != null}");
}
***
}
Why its not working?
P.S. - Its working on normal void out of script