コード例 #1
0
    private void PerformActionClipEvent(AvatarController avatar, EditorClipEvent clipEvent)
    {
        string type = clipEvent.name;

        string[] args = GHelper.UF_SplitStringWithCount(clipEvent.GetParam("param"), EditorActionClipTool.GetParamCount(type), '\n');
        switch (type)
        {
        case "Hit": Action_Hit(avatar, args); break;

        case "Dip": Action_Dip(avatar, args); break;

        case "Link": Action_Link(avatar, args); break;

        case "Efx": Action_Efx(avatar, args); break;

        case "Sound": Action_Sound(avatar, args); break;

        case "Efx_Follow": Action_Efx_Follow(avatar, args); break;

        case "Efx_Target": Action_Efx_Target(avatar, args); break;

        case "Efx_Range": Action_Efx_Range(avatar, args); break;
        }
    }
コード例 #2
0
 private int GetParamCount(string pType)
 {
     return(EditorActionClipTool.GetParamCount(pType));
 }