Example #1
0
    void Start()
    {
        measure    = GetComponent <PathMeasurement>();
        nodes      = GetComponent <Nodes>();
        render     = GetComponent <RenderPaths>();
        generator  = GetComponent <NodeGenerator>();
        scoreText  = GameObject.FindWithTag("ScoreText").GetComponent <Text>();
        healthText = GameObject.FindWithTag("HealthText").GetComponent <Text>();
        undoButton = GameObject.FindWithTag("UndoButton").GetComponent <Button>();
        skipButton = GameObject.FindWithTag("SkipButton").GetComponent <Button>();
        minLine    = GameObject.FindWithTag("MinimumLine").GetComponent <RectTransform>();

        RestartGame();
    }
Example #2
0
    void Start()
    {
        measure        = GetComponent <PathMeasurement>();
        nodes          = GetComponent <Nodes>();
        pathSelection  = GetComponent <PathSelection>();
        render         = GetComponent <RenderPaths>();
        cam            = GameObject.FindWithTag("MainCamera").GetComponent <Camera>();
        tutorialText   = GameObject.FindWithTag("TutorialText").GetComponent <Text>();
        nextButton     = GameObject.FindWithTag("NextButton").GetComponent <Button>();
        nextButtonText = GameObject.FindWithTag("NextButtonText").GetComponent <Text>();
        timer          = GameObject.FindWithTag("TimerCircle");
        scoreText      = GameObject.FindWithTag("ScoreText").GetComponent <Text>();
        healthText     = GameObject.FindWithTag("HealthText").GetComponent <Text>();
        undoButton     = GameObject.FindWithTag("UndoButton").GetComponent <Button>();
        skipButton     = GameObject.FindWithTag("SkipButton").GetComponent <Button>();

        RestartGame();
        CreateTutorial();
    }
Example #3
0
 void Start()
 {
     nodes   = GetComponent <Nodes>();
     render  = GetComponent <RenderPaths>();
     measure = GetComponent <PathMeasurement>();
 }