Ejemplo n.º 1
0
 void Start()
 {
     numCols              = boardManager.numCols;
     numRows              = boardManager.numRows;
     tileList             = new List <Tile>();
     provisionalTileCount = 0;
     aboutToCollapse      = false;
     juicy = GameObject.FindWithTag("JuicyManager").GetComponent <JuicyManager>();
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        turnManager          = turnManagerObj.GetComponent <TurnManager> ();
        currentPositionIndex = 0;

        transform.parent.transform.position = new Vector3(10, 0, 0);

        juicymanager = GameObject.FindWithTag("JuicyManager").GetComponent <JuicyManager> ();

        soundplayer = GameObject.FindWithTag("SoundPlayer");
    }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        soundplayer        = GameObject.FindWithTag("SoundPlayer");
        boardManager       = boardManagerObj.GetComponent <BoardManager> ();
        mode               = "Spawn Tile"; //spawn tile, select tile, place tile 0 (you haven't placed it anywhere yet), place tile 1 (you've placed it somewhere, but not finalized), select stack
        rotationIndex      = 0;
        firstTileFinalized = false;
        numSidesCollapsed  = 0;
        GameOverUI.SetActive(false);
        anythingTweening = false;
        tileInPosition   = false;
        gameIsOver       = false;

        juicyManager = juicyManagerObj.GetComponent <JuicyManager> ();
    }
Ejemplo n.º 5
0
    /*
     * index:	1) board1
     *          2) board2
     *          3) red
     *          4) blue
     *          5) yellow
     *          6) green
     */

    // Use this for initialization
    void Start()
    {
        numCols = 6;
        numRows = 6;

        currentNumCols         = numCols;
        currentNumRows         = numRows;
        currentLowestColIndex  = 0;
        currentLowestRowIndex  = 0;
        currentHighestColIndex = 5;
        currentHighestRowIndex = 5;

        score = 0;
        centerSpaceChanged = false;
        scoring            = false;

        juicy       = GameObject.FindWithTag("JuicyManager").GetComponent <JuicyManager>();
        turnManager = GameObject.FindWithTag("TurnManager").GetComponent <TurnManager> ();
        CreateBoard();
        CreateTileBag();
        boardInitialized = false;
    }
Ejemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     juicymanager = GameObject.FindWithTag("JuicyManager").GetComponent <JuicyManager> ();
     boardmanager = GameObject.FindWithTag("BoardManager").GetComponent <BoardManager> ();
 }