Ejemplo n.º 1
0
 public Track(Direction direction)
 {
     this.direction                   = direction;
     this.vectorDirection             = VectorGenerator.fromDirection(direction);
     this.enemySpawnLocation          = Constants.originTransform;
     this.enemySpawnLocation.position = 0.00001f * this.vectorDirection;
     enemySpawnTransform              = new Vector3(enemySpawnLocation.position.x, enemySpawnLocation.position.y, 0);
 }
Ejemplo n.º 2
0
 void Start()
 {
     this.hitbox          = GetComponent <Rigidbody2D>();
     this.direction       = DirectionGenerator.BuildFromRigidbody2D(this.hitbox);
     this.directionVector = VectorGenerator.fromDirection(this.direction);
 }