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(); }
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(); }
void Start() { nodes = GetComponent <Nodes>(); render = GetComponent <RenderPaths>(); measure = GetComponent <PathMeasurement>(); }