// Start is called before the first frame update
 public void Start()
 {
     recipeUI       = GameObject.Find("RecipeUI");
     bouncerSpawn   = GameObject.FindGameObjectWithTag("GameController").GetComponent <SpawnerScript>();
     scoreUI        = GameObject.Find("GameUI").GetComponent <ScoreUIScript>();
     recipeComplete = false;
     currentRecipe  = -1;
     DecideNextRecipe();
 }
    void Start()
    {
        currentSpawnTimer = timeBetweenSpawns;

        scoreScript = GameObject.FindGameObjectWithTag("UI").GetComponent<ScoreUIScript>();
        exitScript = GameObject.FindGameObjectWithTag("Exit").GetComponent<ExitScript>();

        gameTime = 0.0f;

        Screen.sleepTimeout = SleepTimeout.NeverSleep;

        coinManager = GameObject.Find("CoinManager").GetComponent<CoinManagerScript>();
    }
 // Use this for initialization
 void Start()
 {
     scoreDisplay = GameObject.FindGameObjectWithTag("UI").GetComponent<ScoreUIScript>();
     InitializePosition();
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     playerBody = GetComponent<Rigidbody2D>();
     initialXPos = transform.position.x;
     initialTouchPosition = new Vector2(0, 0);
     cameraTransform = GameObject.FindGameObjectWithTag("MainCamera").transform;
     replayObject = GameObject.FindGameObjectWithTag("Respawn");
     replayMenu = replayObject.GetComponentInChildren<ReplayScript>();
     scoreBoard = GameObject.FindGameObjectWithTag("MainUI").GetComponent<ScoreUIScript>();
     trail = GetComponentInChildren<TrailRenderer>();
     indicatorSpawner = GetComponent<FlowerSpawner>();
 }
Example #5
0
    // Use this for initialization
    void Start()
    {
        startingHeight = 10;
        ResetMenuPosition();

        playerInput = GameObject.FindGameObjectWithTag("Player").GetComponent<inputHandler>();

        scoreScript = GameObject.FindGameObjectWithTag("MainUI").GetComponent<ScoreUIScript>();
        tipsScript = gameObject.GetComponentInChildren<TipScript>();

        HighScore = gameObject.GetComponentsInChildren<Text>()[0];
        CurrentScore = gameObject.GetComponentsInChildren<Text>()[1];
    }
Example #6
0
    public ScoreUIScript scoreUIScript; // ScoreUI script

    // Use this for initialization
    void Start()
    {
        particlesPivotDistance = particleSize * numparticles / 2;
        particlesPivot         = new Vector3(particlesPivotDistance, particlesPivotDistance, particlesPivotDistance);
        scoreUIScript          = scoreUIObject.GetComponent <ScoreUIScript>();
    }