示例#1
0
    // Start is called before the first frame update
    void Awake()
    {
        // set singleton
        Instance = this;
        Instantiate(Player);

        // ref other scripts
        gm = GameObject.Find("Grid Maker").GetComponent <GridMaker>();
        progressController = GameObject.Find("Progress Arrow").GetComponent <ProgressController>();
        st          = GameObject.Find("Species Tracker").GetComponent <SpeciesTracker>();
        audioSource = GetComponent <AudioSource>();
    }
示例#2
0
    // Start is called before the first frame update
    void Awake()
    {
        // set singleton
        Instance = this;
        Instantiate(Player);

        // ref other scripts
        gm = GameObject.Find("Grid Maker").GetComponent <GridMaker>();
        progressController = GameObject.Find("Progress Arrow").GetComponent <ProgressController>();
        st            = GameObject.Find("Species Tracker").GetComponent <SpeciesTracker>();
        hd            = GetComponent <HintDetection>();
        audioSource   = GetComponent <AudioSource>();
        originalScale = backButton.transform.localScale.x;
    }