Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        isAreaBomb = false;

        isColumnBomb = false;
        isRowBomb    = false;

        //Use this for initialization
        board       = FindObjectOfType <Board>();
        findMatches = FindObjectOfType <FindMatches>();
        hintManager = FindObjectOfType <HintManager>();

        buttonManager = FindObjectOfType <ButtonManager>();
        powerUpPoints = FindObjectOfType <PowerUpPoints>();

        //Debug.Log(tigerButton);

        // targetX = (int)transform.position.x;
        // targetY = (int)transform.position.y;

        // row = targetY;
        //column = targetX;

        //previousColumn = column;
        // previousRow = row;
    }
    private void Start()
    {
        clickedTiger  = false;
        clickedDragon = false;
        clickedRat    = false;

        //myButtons[0].interactable = false;
        //myButtons[1].interactable = false;
        //myButtons[2].interactable = false;

        powerUpPoints = FindObjectOfType <PowerUpPoints>();
    }
Esempio n. 3
0
    // Start is called before the first frame update
    void Awake()
    {
        // Maria Edit Part 33: Scoring System
        // Time Stamps: 13:46
        sliderChange  = FindObjectOfType <SliderChange>();
        powerUpPoints = FindObjectOfType <PowerUpPoints>();

        //moveCounter = 20;
        moveCounterText.text = moveCounter.ToString();
        playerMatch          = false;

        findMatches = FindObjectOfType <FindMatches>();
        theScore    = FindObjectOfType <ScoreManager>();
        allTiles    = new Background_Tile[width, height];
        allIcons    = new GameObject[width, height];
        //Setup the board
        SetUp();
        Debug.Log(theScore.thisLevel);
        currentHighScore = theScore.GetHighScore();
    }