コード例 #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;
 }
コード例 #3
0
 void OnDestroy()
 {
     Assert.IsTrue(s_instance == this, "we should be the only FuelSDKGroovePlanetIntegration instance in scene");
     s_instance = null;
 }
コード例 #4
0
    void Awake()
    {
        GameObject.DontDestroyOnLoad(gameObject);
        Assert.IsNull(s_instance, "already have FuelSDKGroovePlanetIntegration instance in scene");

        s_instance = this;

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