コード例 #1
0
ファイル: Coin.cs プロジェクト: ninify13/GSTJ
        public void Init(Vector3 startPosition, Vector3 endPosition, OnCollected onCollected, PoolManager poolManager)
        {
            m_scrollingObject.SetStartPoint(startPosition);
            m_scrollingObject.SetEndPoint(endPosition);

            m_scrollingObject.OnScrollComplete += OnCollect;
            m_scrollingObject.Play();

            m_onCollected = onCollected;

            m_poolManager = poolManager;
        }
コード例 #2
0
ファイル: EasterEgg.cs プロジェクト: ninify13/GSTJ
        public void Init(int eggID, Vector3 startPosition, Vector3 endPosition, OnCollected onCollected, PoolManager poolManager)
        {
            //allocate the specified easter egg
            EasterEggs[eggID].SetActive(true);
            m_scrollingObject.SetStartPoint(startPosition);
            m_scrollingObject.SetEndPoint(endPosition);

            m_scrollingObject.OnScrollComplete += OnCollect;
            m_scrollingObject.Play();

            m_onCollected = onCollected;

            m_poolManager = poolManager;
        }
コード例 #3
0
ファイル: Fire.cs プロジェクト: ninify13/GSTJ
        public void Init(Vector3 startPosition, Vector3 endPosition, bool scroll, OnExtinguished onExtinguished, PoolManager poolManager)
        {
            m_scrollingObject.SetStartPoint(startPosition);
            m_scrollingObject.SetEndPoint(endPosition);

            m_scroll = scroll;

            m_onExtinguished = onExtinguished;

            if (m_scroll)
            {
                m_scrollingObject.OnScrollComplete += OnExtinguish;
                m_scrollingObject.Play();
            }

            m_poolManager = poolManager;
        }