Пример #1
0
    void Awake()
    {
        GameObject.DontDestroyOnLoad(gameObject);
        Assert.IsNull(s_instance, "already have FuelSDKGroovePlanetIntegration instance in scene");

        s_instance = this;


        events = new Dictionary <string, IgniteEvent>();
    }
Пример #2
0
 void OnDestroy()
 {
     Assert.IsTrue(s_instance == this, "we should be the only FuelSDKGroovePlanetIntegration instance in scene");
     s_instance = null;
 }
 void OnDestroy()
 {
     Assert.IsTrue(s_instance == this, "we should be the only FuelSDKGroovePlanetIntegration instance in scene");
     s_instance = null;
 }
    void Awake()
    {
        GameObject.DontDestroyOnLoad(gameObject);
        Assert.IsNull(s_instance, "already have FuelSDKGroovePlanetIntegration instance in scene");

        s_instance = this;

        events = new Dictionary<string, IgniteEvent>();
    }