Beispiel #1
0
 public Feature(Maze maze, Vector3 Origin, bool [,] uniqueObjects)
 {
     this.uniqueObjects = uniqueObjects;
     this.maze          = maze;
     this.Origin        = Origin;
 }
Beispiel #2
0
 public Feature(Maze maze, Vector3 Origin)
 {
     this.maze   = maze;
     this.Origin = Origin;
 }
Beispiel #3
0
 public Turret(int xCoord, int yCoord, GameObject turretPrefab, GameObject bulletPrefab, float timerMax, Maze maze) : base(xCoord, yCoord)
 {
     this.maze         = maze;
     active            = false;
     this.timerMax     = timerMax;
     this.turretPrefab = turretPrefab;
     this.bulletPrefab = bulletPrefab;
     turret            = Object.Instantiate(turretPrefab, maze.CoordsToPosition(X, Y, 0.5f, 0.5f, 0.5f), Quaternion.Euler(90, 0, 0));
     warningTimer      = 2;
 }
Beispiel #4
0
 public End(int xCoord, int yCoord, Maze maze) : base(xCoord, yCoord)
 {
     this.maze = maze;
     EndPrefab = (GameObject)Resources.Load("Prefabs/Maze/End");
     Build();
 }
Beispiel #5
0
 public BuzzSaw(int xCoord, int yCoord, GameObject buzzSawPrefab, GameObject warningPadPrefab, float timerMax, Maze maze) : base(xCoord, yCoord)
 {
     this.maze          = maze;
     active             = false;
     this.timerMax      = timerMax;
     this.buzzSawPrefab = buzzSawPrefab;
     warningPad         = Object.Instantiate(warningPadPrefab, maze.CoordsToPosition(X, Y, 0.5f, 0.5f, 0.1f), Quaternion.Euler(90, 0, 0));
     warningTimer       = 2;
 }