Example #1
0
        public void Init(Vector3 position)
        {
            transform.position = position;

            m_smokePlayer.SetClip(0);
            m_smokePlayer.Play();
        }
Example #2
0
        public override void OnAllocate()
        {
            base.OnAllocate();

            m_scrollingObject = gameObject.GetComponent <ScrollingObject>();

            m_coinPlayer.SetClip(0);
            m_coinPlayer.Play();
        }