public CEffect DoPlayEffect(string strEffectEvent, Transform pTransform)
    {
        if (_mapEffectPlayInfo.ContainsKey(strEffectEvent) == false)
        {
            return(null);
        }

        SEffectPlayInfo pEffectPlayInfo = _mapEffectPlayInfo[strEffectEvent];

        return(PlayEffect(pEffectPlayInfo.GetRandomEffect(), pTransform));
    }
示例#2
0
    // ========================================================================== //

    /* public - [Do] Function
     * 외부 객체가 호출(For External class call)*/

    public CEffect DoPlayEffect(string strEffectEvent = "")
    {
        if (CheckDebugFilter(EDebugFilter.Debug_Level_Core))
        {
            Debug.Log(ConsoleProWrapper.ConvertLog_ToCore(" DoPlayEffect - " + strEffectEvent + " Is Contain : " + _mapEffectPlayInfo.ContainsKey(strEffectEvent)), this);
            return(null);
        }

        if (_mapEffectPlayInfo.ContainsKey(strEffectEvent) == false)
        {
            return(null);
        }

        SEffectPlayInfo pEffectPlayInfo = _mapEffectPlayInfo[strEffectEvent];

        return(PlayEffect(pEffectPlayInfo.GetRandomEffect()));
    }