Пример #1
0
    /// <summary>
    /// 播放敌方来袭
    /// </summary>
    private void PlayWarning()
    {
        GameObjectActionExcute gae = EffectM.LoadEffect("effect/prefab/", "2000501_01",
                                                        Vector3.zero, WndManager.GetNGUIRoot().transform);

        if (gae != null)
        {
            GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(2.0f);
            gae.AddAction(ndEffect);
        }
    }