Exemple #1
0
    private void Awake()
    {
        if (!m_initialized)
        {
            GameObject.DontDestroyOnLoad(gameObject);

            if (!Application.isEditor)
            {
                // Initialize the Fuel SDK listener
                // reference for later use by the launch
                // methods.
                m_listener = new FuelListener(this);
                FuelSDK.setListener(m_listener);
            }
            m_initialized = true;
        }
        else
        {
            GameObject.Destroy(gameObject);
        }
    }
Exemple #2
0
 private void Initialize()
 {
     m_listener = new FuelListenerExample(this);
     FuelSDK.setListener(m_listener);
 }
Exemple #3
0
    void Start()
    {
        FuelSDK.setListener(new GroovePlanetFuelSDKListener());

        GetEvents();
    }