public void ResetTwitter()
 {
     if (m_twitterContentIsDirty)
     {
         TwitterManager.Instance.ResetToAllTweets();
         TwitterCube.ResetTwitterContent();
         m_twitterContentIsDirty = false;
     }
 }
Example #2
0
    public void SpawnAmbientCubes()
    {
        if (m_isAlreadyRunning)
        {
            TwitterCube.ResetTwitterContent();
            return;
        }

        m_isAlreadyRunning = true;
        m_flyingCubePref.InitPool(transform);
        m_attractCubePref.InitPool(transform);
        m_streamCubePref.InitPool(transform);

        foreach (Vector3 point in m_flyingSpawnPoints)
        {
            StartCoroutine(SpawnFlyingCubes(m_flyingCubePref, point));
        }

        StartCoroutine(SpawnAttractCubes());
    }
 void UpdateTwitterCallback(List <TweetSearchTwitterData> tweetList)
 {
     m_twitterContentIsDirty = true;
     TwitterManager.Instance.UpdateTweets(StartupSettings.Instance.MinTakeawayTweets, tweetList);
     TwitterCube.ResetTwitterContent();
 }