// Use this for initialization
 void Start()
 {
     //need a coroutine to build the maze, rotate, drop in, spawn ball
     PE = GetComponent <PuzzleEvents>();
     StartCoroutine(spawnMaze(8, 8));
     floor = GameObject.Find("Floor").GetComponent <Floor>();
 }
 // Use this for initialization
 void Start()
 {
     pE    = GetComponent <PuzzleEvents>();
     floor = GameObject.Find("Floor").GetComponent <Floor>();
     floor.setAllTilesVisibility(false);
     myCoroutine = StartCoroutine(spawnMoles());
     myTarget    = Instantiate(target);
 }
Ejemplo n.º 3
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "MainCamera")
     {
         Anim           = other.GetComponent <Animator>();
         puzzleInstance = Instantiate(puzzleToSpawn, PuzzleLocation);
         PE             = puzzleInstance.GetComponent <PuzzleEvents>();
         PE.OnSolve    += ChallangeComplete;
     }
 }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        pE = GetComponent <PuzzleEvents>();
        // TE = GetComponent<TetrisExplosion>();
        spawnerFront = Instantiate(tetrisSpawner, frontSpawn);
        // spawnerLeft = Instantiate(tetrisSpawner, leftSpawn);
        // spawnerRight = Instantiate(tetrisSpawner, rightSpawn);
        floor        = GameObject.Find("Floor").GetComponent <Floor>();
        arrayOfTiles = floor.getArrayOfTiles();

        // setUpParticleFields();
    }
Ejemplo n.º 5
0
 void Awake()
 {
     PE               = GetComponent <PuzzleEvents>();
     floor            = GameObject.Find("Floor").GetComponent <Floor>();
     notSelectorTiles = floor.getAllTiles();
 }