protected override void OnEnd() { //AssetManager.Effect.Retrieve("FX_Buff_Blue", transform.position); AssetManager.Effect.Retrieve("ItemGet", transform.position); if (null != m_uiHealPack) { m_uiHealPack.Restore(); m_uiHealPack = null; } base.OnEnd(); }
protected override void OnStart() { isUIActive = false; rendTransform.localScale = new Vector3(1.5f, 1.5f, 1.5f); rendTransform.localScale *= (m_hp * 0.01f); AssetManager.Effect.Retrieve("ItemAppearEffect", rendTransform); if (!isUIActive) { isUIActive = true; m_uiHealPack = UIManager.Instance.Open("UIHealPack", true) as UIHealPack; if (m_uiHealPack != null) { m_uiHealPack.Init(m_uiName); } else { Debug.LogWarning(name + " ui null"); } } }