예제 #1
0
        /// <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();
            }
        }
예제 #2
0
 public void Dispose()
 {
     this.map = null;
     this.changePos.Clear();
     this.changePos = null;
 }