示例#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
        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;
        }