Esempio n. 1
0
    public void Start()
    {
        anim = GetComponent <Animator>();

        buttonSource = buttonHolder.GetComponent <AudioSource>();

        slider      = GameObject.FindGameObjectWithTag("Slider");
        resetHolder = GameObject.FindGameObjectWithTag("ResetSlide");
        resetPos    = resetHolder.GetComponent <RectTransform>();
        sliderPos   = slider.GetComponent <RectTransform>();


        maxVal  = 150;
        maxCats = 5;

        currentFPS = 0;
        ifAuto     = false;

        currentVal   = 0;
        currentCats  = 0;
        currentClick = 10;
        currentSpawn = lvl1;

        mergeCheck = false;

        popUpHolder = GameObject.FindGameObjectWithTag("Manager");
        popUpScript = popUpHolder.GetComponent <PopUpSys>();

        infoHolder = GameObject.FindGameObjectWithTag("Info");
        infoMenu   = infoHolder.GetComponent <InfoMenu>();
    }
Esempio n. 2
0
    void Start()
    {
        coins = 0;

        popUpHolder2 = GameObject.FindGameObjectWithTag("Manager");
        popUpScript2 = popUpHolder2.GetComponent <PopUpSys>();

        moneyCheck = false;
    }