// --<自动战斗> 玩家是否正在返回途中 //private bool isReturning; public StateMachine() { IsPause = false; currentState = null; previousState = null; globalState = null; proxyState = null; skill_a3Data skdata = null; int skid = -1; switch (PlayerModel.getInstance().profession) { default: case 2: skid = 2001; break; case 3: skid = 3001; break; case 5: skid = 5001; break; } Skill_a3Model.getInstance().skilldic.TryGetValue(skid, out skdata); StateAttack.MinRange = skdata.range / GameConstant.PIXEL_TRANS_UNITYPOS; }
public void Configure(StateBase initState, StateBase globalState, StateBase proxyState) { this.initState = initState; this.globalState = globalState; this.proxyState = proxyState; }