public bool Update(IFightFSM fight, BlockFunc func, int frameindex) { switch ((Conditon)func.intParam0) { case Conditon.Direct: fight.SetForceClear(); break; case Conditon.Jump_Fall: if (fight.Jump_IsFall()) { fight.SetForceClear(); } break; case Conditon.Jump_Floor: if (fight.Jump_IsFloor()) { fight.SetForceClear(); /* Debug.Log("setzero!");*/ } break; default: break; } return(false); }
public bool Update(IFightFSM fight, BlockFunc func, int frameindex) { //if (func.activeFrameBegin < 0 || frameindex < func.activeFrameBegin) return false; //if (func.activeFrameEnd >= 0 && frameindex > func.activeFrameEnd) return false; if (func.intParam0 == 1) { fight.SetForceClear(); } if (func.intParam1 == 1) { var dir = FBJoy2.g_joy.curState.dir; fight.AddForceSpeedWithoutCharDir(new Vector3(func.vecParam0.x * dir.x, 0, func.vecParam0.z * dir.y)); } else { fight.AddForceSpeed(func.vecParam0); /* Debug.Log("Force:" + func.vecParam0);*/ } return(false); }