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(); }
// Use this for initialization void Start() { instance = this; SetupWorld(); }
public UpdateableComponent(IEntity entity) : base(entity) { ProceduralWorldSimulator.RegisterUpdatable(this); }
public Entity() { ProceduralWorldSimulator.RegisterEntity(this); }
public void Activate() { ProceduralWorldSimulator.RegisterUpdatable(this); }