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