internal void TakeBag() { if (m_penguin != null) { mg_bc_Bag mg_bc_Bag2 = m_penguin.RemoveBag(); if (mg_bc_Bag2 != null) { AddBag(mg_bc_Bag2); mg_bc_Bag2.Destroy(); } } }
protected virtual void OnCaughtBag(mg_bc_Bag _bag) { if (_bag.State != mg_bc_EObjectState.STATE_HELD) { m_heldBagsStack.Push(_bag); UpdateBagCount(); _bag.OnCaught(); if (!IsDead) { mg_bc_ScoreController.Instance.OnBagCaught(); } else { _bag.Destroy(); } } }