예제 #1
0
 protected virtual void CreateBaseComponent()
 {
     _physicalBase = CreatePhysicalBase();
     //目前只引发移动事件
     _moveComponent = new MoveComponentBase(_physicalBase);
     //目前只有最大速度
     _invariantAttributeComponent = new InvariantAttributeComponentBase();
 }
예제 #2
0
 public virtual void Dispose()
 {
     level = null;
     _physicalBase.Dispose();
     _physicalBase = null;
     _moveComponent.Dispose();
     _moveComponent = null;
     _invariantAttributeComponent = null;
 }