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