public override void Initialize() { ProceduralWorldSimulator.RegisterUpdatable(this); mover.movement.user = this; this.maxDist = Vector2.Distance(desiredPosition, moverPosition.position); //TODO turn off other movement if (pc != null) { pc.SetTarget(desiredPosition); } Activate(); }
public UpdateableComponent(IEntity entity) : base(entity) { ProceduralWorldSimulator.RegisterUpdatable(this); }
public void Activate() { ProceduralWorldSimulator.RegisterUpdatable(this); }