Пример #1
0
    private void Start() {
        pcg = GameObject.FindObjectOfType<PcgGenerator>();
        level = GameObject.FindObjectOfType<TimerLevel>();
		levelSummary = GameObject.Find("LevelInt").GetComponent<Text>();
		scoreSummary = GameObject.Find("ScoreInt").GetComponent<Text>();
		highScoreSummary = GameObject.Find("HighScoreInt").GetComponent<Text>();
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        scorekeeper      = GameObject.FindObjectOfType <ScoreKeeper>();
        geneAppleRewards = GameObject.FindObjectOfType <GenerateAppleRewards>();
        level            = GameObject.FindObjectOfType <TimerLevel>();

        pcg_MazeBricks = GameObject.Find("PCG_MazeBricks");
        maze           = pcg_MazeBricks.GetComponent <PCG_MazeBricks>();

        nonplayableEntities = GameObject.Find("NonPlayableEntities");
        npc = nonplayableEntities.GetComponent <NonPlayableEntities>();

        gfox        = GameObject.Find("GenerateFox");
        generatefox = gfox.GetComponent <GenerateFox>();

        gamesummary = GameObject.Find("GameSummary");
        gamesummary.SetActive(false);

        animalCount    = GameObject.Find("AnimalCount").GetComponent <Text>();
        animalCountInt = 0;
    }