void SetEffect() { CombatInfoWnd Wnd = WndManager.FindDialog <CombatInfoWnd>(); if (Wnd != null) { Wnd.PlayResourceAni(m_type); } /* if (m_type == ResourceType.Gold) * { * CombatInfoWnd Wnd = WndManager.FindDialog<CombatInfoWnd>(); * if (Wnd != null) * { * Transform parent = Wnd.GetResourcePos(m_type); * GameObjectActionExcute gae = EffectM.LoadEffect("effect/prefab/", "2000301", parent.position, parent); * if (gae != null) * { * GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(0.5f); * gae.AddAction(ndEffect); * } * } * } * else if (m_type == ResourceType.Wood) * { * CombatInfoWnd Wnd = WndManager.FindDialog<CombatInfoWnd>(); * if (Wnd != null) * { * Transform parent = Wnd.GetResourcePos(m_type); * GameObjectActionExcute gae = EffectM.LoadEffect("effect/prefab/", "2000311", parent.position, parent); * if (gae != null) * { * GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(0.5f); * gae.AddAction(ndEffect); * } * } * * } * else if (m_type == ResourceType.Box) * { * CombatInfoWnd Wnd = WndManager.FindDialog<CombatInfoWnd>(); * if (Wnd != null) * { * Transform parent = Wnd.GetResourcePos(m_type); * GameObjectActionExcute gae = EffectM.LoadEffect("effect/prefab/", "2000481", parent.position, parent); * if (gae != null) * { * GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(0.5f); * gae.AddAction(ndEffect); * } * } * * }*/ //分支 //Destroy(); }