/// <summary> /// 应用位移算法 /// </summary> /// <param name="cp"></param> private void ApplyChangePos(IChangePosition cp) { if (this.changePos == null) { this.changePos = cp; } else if (this.changePos.Level <= cp.Level) { this.changePos.Clear(); this.changePos = cp; } if (this.changePos != null) { this.changePos.Player = this; this.changePos.Init(); } }
public void Dispose() { this.map = null; this.changePos.Clear(); this.changePos = null; }