예제 #1
0
    private int GetCurrentScore()
    {
        theScore = FindObjectOfType <SliderChange>();
        int Score;

        Score = (int)theScore.currentScore;
        return(Score);
    }
예제 #2
0
        // Done!
        #region Events

        // Done!
        private void SliderScroll(object sender, EventArgs e)
        {
            SetLabelName();
            if (SliderChange != null)
            {
                SliderChange.Invoke(this, e);
            }
        }
예제 #3
0
        void HandleSliderChange(object sender, System.EventArgs e)
        {
            //TODO if isSliderSnap then snap the value to nearest integer
            if (isSliderSnap)
            {
                slider.Value = (float)Math.Round(slider.Value, 0);
            }

            SliderChange?.Invoke(this, e);
        }
예제 #4
0
    void Start()
    {
        board        = FindObjectOfType <Board>();
        sliderChange = FindObjectOfType <SliderChange>();
        hint         = FindObjectOfType <HintManager>();
        int i = 0;

        foreach (Screen s in Screens)
        {
            if (s.name.Equals("Pause"))
            {
                PauseScreen = i;
            }
            i++;
        }
    }
예제 #5
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();
    }
예제 #6
0
 // Start is called before the first frame update
 void Start()
 {
     board = FindObjectOfType <Board>();
     slide = FindObjectOfType <SliderChange>();
 }