예제 #1
0
 void Awake()
 {
     SingletonInstanceGuard();
     bigAsteroidPool = ObjectPool.Build(m_AsteroidBigPrefab, 25, 50);
     smallAsteroidPool = ObjectPool.Build(m_AsteroidSmallPrefab, 25, 50);
     announce = GameAnnouncer.AnnounceTo(Announcer.TextComponent(m_UIText), Announcer.Log(this));
     wallpaper = AsteroidWallpaper.New(bigAsteroidPool, smallAsteroidPool);
 }
예제 #2
0
 void Awake()
 {
     SingletonInstanceGuard();
     bigAsteroidPool = ObjectPool.Build(m_AsteroidBigPrefab, 25, 50);
     smallAsteroidPool = ObjectPool.Build(m_AsteroidSmallPrefab, 25, 50);
     announce = GameAnnouncer.AnnounceTo(Announcer.TextComponent(m_UIText), Announcer.Log(this));
     wallpaper = AsteroidWallpaper.New(bigAsteroidPool, smallAsteroidPool);
 }
예제 #3
0
    //--------------------------------------------------------------
    // *** CONSTRUCTORS ***

    private void Awake()
    {
        // if the singleton hasn't been initialized yet
        if (_pInstance != null && _pInstance != this)
        {
            Destroy(this.gameObject);
            return;
        }

        // Set singleton
        _pInstance = this;
    }
예제 #4
0
 private void Awake()
 {
     SingletonInstanceGuard();
     announce = GameAnnouncer.AnnounceTo(Announcer.TextComponent(m_UIText), Announcer.Log(this));
 }