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