void OnActionSequencerChangeMode(int characterNum, ActionSequencer.Mode newMode, ActionParamater ap) { Character me = characterList[characterNum]; int otherCharacterNum = (characterNum == 0) ? 1 : 0; Character other = characterList[otherCharacterNum]; if (newMode == ActionSequencer.Mode.MAIN) { switch (ap.Type) { case ActionParamater.TYPE.ATTACK: AttackProcess(me, other); break; } } }
void OnChangeEventCharacter1(ActionSequencer.Mode newMode, ActionParamater ap) { OnActionSequencerChangeMode(1, newMode, ap); }