Example #1
0
	public void SetCollectable(Collectable powerUp)
    {
		if (m_currentCollectable != null)
			m_currentCollectable.FinishCollectable ();
		
        m_currentCollectable = powerUp;
		// Set the player as the parent of the power up 
		m_currentCollectable.transform.parent = transform;
        m_currentCollectable.StartCollectable(this);
		m_currentCollectable.SetFeedback (m_feedback);
    }