void Start() { rdmobj = GameObject.Find("RdmGen").GetComponent <RdmObjGen>(); btnShield = gameObject.GetComponent <Button>(); scoreCounter = GameObject.Find("subScoreCounter").GetComponent <scoreCounter>(); achPowerTripScript = GameObject.Find("btnBoost").GetComponent <achPowerTripper>(); }
void Start() { rdmobj = GameObject.Find("RdmGen").GetComponent <RdmObjGen>(); boostLane = GameObject.Find("BoostLane"); healthbarSlider = GameObject.Find("healthSlider").GetComponent <Slider>(); boostbarSlider = GameObject.Find("boostSlider").GetComponent <Slider>(); ui = GameObject.Find("UI"); maincam = GameObject.Find("Main Camera"); cam = Camera.main; btnPause = GameObject.Find("Pause"); goPanel = GameObject.Find("goPanel"); gameover = goPanel.GetComponent <Animator>(); player = GameObject.FindGameObjectWithTag("Player"); scoring = GameObject.Find("subScoreCounter").GetComponent <scoreCounter>(); pDescend = player.gameObject.GetComponent <camdescend>(); anim = GameObject.FindGameObjectWithTag("character").GetComponent <Animation>(); btnShield = GameObject.Find("btnShield").GetComponent <Button>(); btnAttack = GameObject.Find("btnAttack").GetComponent <Button>(); btnBoost = GameObject.Find("btnBoost").GetComponent <Button>(); PlayerPrefs.DeleteKey("tempGoldCoins"); colCoins = GameObject.Find("txtCc").GetComponent <Text>(); character = GameObject.FindGameObjectWithTag("character"); lvlUpScript = GameObject.Find("subScoreCounter").GetComponent <levelUp>(); swipeScript = maincam.gameObject.GetComponent <SwipeMovement>(); txtExpReq = GameObject.Find("txtExpReq").GetComponent <Text>(); expSlider = GameObject.Find("expSlider").GetComponent <Slider>(); txtExpCur = GameObject.Find("txtExpCur").GetComponent <Text>(); rewardedAdsScript = GameObject.Find("simpleAd").GetComponent <rewardedAds>(); uigoldScript = GameObject.Find("txtuigold").GetComponent <uigoldUpdater>(); pauseScript = GameObject.Find("onPause").GetComponent <pauseScale>(); uigoldScript.updateGoldCoin(); }
void Start() { rdmobj = GameObject.Find("RdmGen").GetComponent <RdmObjGen>(); spawnPointProjectile = GameObject.Find("spawnPointProjectile"); btnAttack = gameObject.GetComponent <Button>(); cooldownAttackScript = GameObject.Find("cooldownAttack").GetComponent <cooldownAttack>(); scoreCounter = GameObject.Find("subScoreCounter").GetComponent <scoreCounter>(); achPowerTripScript = GameObject.Find("btnBoost").GetComponent <achPowerTripper>(); }
// Start is called before the first frame update void Awake() { scoreManager = GameObject.Find("ScoreManager"); ScoreCounter = scoreManager.GetComponent <scoreCounter>(); Score = ScoreCounter.score; final.text = "Final Score " + Score.ToString() + '\n' + '\n' + "You popped : " + '\n' + ScoreCounter.bigPop.ToString() + " Big Bubbles" + '\n' + ScoreCounter.mediumPop.ToString() + " Medium Bubbles" + '\n' + ScoreCounter.smallPop.ToString() + " Small Bubbles"; }
void Start() { //score management scorer = GameObject.Find("ScoreManager"); scoreScript = scorer.GetComponent <scoreCounter>(); //sound management soundManager = GameObject.Find("Sound Manager"); soundScript = soundManager.GetComponent <soundManager>(); }
void Start() { objScoreCounter = GameObject.Find("subScoreCounter"); try { scoreCounterScript = objScoreCounter.GetComponent <scoreCounter>(); } catch (System.Exception) { } }
public static void saveGame(scoreCounter sC) { BinaryFormatter binaryFormatter = new BinaryFormatter(); string path = Application.persistentDataPath + "/save.txt"; FileStream stream = new FileStream(path, FileMode.Create); highScore hiScore = new highScore(sC); binaryFormatter.Serialize(stream, hiScore); stream.Close(); }
// Use this for initialization void Start() { scoreCounterScript = GameObject.Find("subScoreCounter").GetComponent <scoreCounter>(); simpleAdScript = GameObject.Find("simpleAd").GetComponent <simpleAd>(); if (!PlayerPrefs.HasKey("rewardedAdCounter")) { PlayerPrefs.SetInt("rewardedAdCounter", 0); } if (!PlayerPrefs.HasKey("rewardClaimed")) { PlayerPrefs.SetInt("rewardClaimed", 1); } }
// Use this for initialization void Start() { scoreCounter = GameObject.Find("subScoreCounter").GetComponent <scoreCounter>(); if (!PlayerPrefs.HasKey("expEarned")) { PlayerPrefs.SetFloat("expEarned", 0.0f); } if (!PlayerPrefs.HasKey("playerLevel")) { PlayerPrefs.SetInt("playerLevel", 1); } if (!PlayerPrefs.HasKey("skillPoints")) { PlayerPrefs.SetInt("skillPoints", 1); } // if (!PlayerPrefs.HasKey("swipeCap")) PlayerPrefs.SetInt("swipeCap", swipeBaseValue); lvlNum = 0; txtlvlup = GameObject.Find("txtlvlup2").GetComponent <Text>(); lvlUpAnim = GameObject.Find("lvlUpPanel").GetComponent <Animator>(); //display temporary code skillpoints = GameObject.Find("skillpoints").GetComponent <Text>(); level = GameObject.Find("level").GetComponent <Text>(); level.text = "Level: " + PlayerPrefs.GetInt("playerLevel").ToString(); skillpoints.text = "Skillpoints: " + PlayerPrefs.GetInt("skillPoints").ToString(); //print required xp and current level txtLvl = GameObject.Find("txtLvl").GetComponent <Text>(); txtExpReq = GameObject.Find("txtExpReq").GetComponent <Text>(); expSlider = GameObject.Find("expSlider").GetComponent <Slider>(); txtExpCur = GameObject.Find("txtExpCur").GetComponent <Text>(); lvlUpAnimationScript = GameObject.Find("subScoreCounter").GetComponent <levelUpAnimation>(); // PlayerPrefs.SetFloat("expEarned", lvl[lvl.Length - 1] - 1); checkReachedScore(); }
// Use this for initialization void Start() { scoreCounter = GameObject.Find("subScoreCounter").GetComponent <scoreCounter>(); PlayerPrefs.SetInt("boost3timesAch", 0); boostLane = GameObject.Find("BoostLane"); btnShield = GameObject.Find("btnShield").GetComponent <Button>(); btnAttack = GameObject.Find("btnAttack").GetComponent <Button>(); btnBoost = GameObject.Find("btnBoost").GetComponent <Button>(); btnPause = GameObject.Find("Pause"); maincam = GameObject.Find("Main Camera"); swipeScript = maincam.gameObject.GetComponent <SwipeMovement>(); boostPropScript = GameObject.FindGameObjectWithTag("Player").GetComponent <boostProp>(); cDownAttack = GameObject.Find("cooldownAttack").GetComponent <cooldownAttack>(); cDownShield = GameObject.Find("cooldownShield").GetComponent <cooldownShield>(); pauseScript = GameObject.Find("onPause").GetComponent <pauseScale>(); achPowerTripScript = GameObject.Find("btnBoost").GetComponent <achPowerTripper>(); if (PlayerPrefs.HasKey("boostSkillLvl")) { boostSkillLvl = PlayerPrefs.GetInt("boostSkillLvl"); } else { boostSkillLvl = 0; } if (boostbarSlider.value <= 0f && boostSkillLvl >= 1) { if (!isRunning) { regenBoost(); } } coroutine = WaitAndUpdate(1.0f); StartCoroutine(coroutine); }
void Start() { scorecounter = GameObject.FindObjectOfType <scoreCounter>(); catapult = GameObject.FindObjectOfType <Catapult>(); Debug.Log(scorecounter.Score); }
// Start is called before the first frame update void Start() { playerObj = GameObject.FindGameObjectWithTag("Player"); playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>(); scoreCounterRef = GameObject.Find("_gameManager").GetComponent <scoreCounter>(); }
void Start() { scoreCount = GameObject.FindGameObjectWithTag("Score").GetComponent <scoreCounter>(); }
// Use this for initialization void Start() { target = GameObject.FindWithTag("Player").transform; score = GameObject.Find("ScoreCounterObj").GetComponent <scoreCounter>(); es = GetComponent <EnemyShoot>(); }
public highScore(scoreCounter sC) { hiScore = sC.getHighestScore(); }