Beispiel #1
0
    public float GetFrameByCombatType(MoveEditor.CombatEventInfo.CombatEventType theType, MoveEditor.Move theMove)
    {
        if (theMove == null)
        {
            EB.Debug.LogError("Try to use unexisted move");
        }

        for (int ii = 0; ii < theMove._combatEvents.Count; ++ii)
        {
            if (theMove._combatEvents[ii].eventType == theType)
            {
                return(theMove._combatEvents[ii]._frame);
            }
        }
        return(-1.0f);
    }
Beispiel #2
0
    public int GetCombatEventCount(MoveEditor.CombatEventInfo.CombatEventType theType, MoveEditor.Move theMove)
    {
        if (theMove == null)
        {
            EB.Debug.LogError("Try to use unexisted move");
            return(0);
        }

        int count = 0;

        for (int ii = 0; ii < theMove._combatEvents.Count; ++ii)
        {
            if (theMove._combatEvents[ii].eventType == theType)
            {
                count++;
            }
        }
        return(count);
    }