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); }
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); }