예제 #1
0
    void Start()
    {
        for (int i = 1; i < collectibles.Count; i++)
        {
            collectibles[i].SetActive(false);
        }

        pathManager = GameObject.FindGameObjectWithTag("PathManager").GetComponent <PathManager>();
        pathManager.SetEnd(collectibles[0].GetComponent <Rigidbody2D>());
        //pathManager.EnableSeeker();

        score        = 0;
        musicManager = GameObject.FindGameObjectWithTag("MusicManager").GetComponent <MusicManager>();
        musicManager.SetMaxScore(maxScore);
        lightControls = GameObject.FindGameObjectWithTag("PlayerLight").GetComponent <Light_Control>();
        lightControls.SetRadiusRange(0f);

        animator = GameObject.Find("Transition").GetComponent <Animator>();
    }
예제 #2
0
    // Update is called once per frame

    private void Start()
    {
        lightControls  = GameObject.FindGameObjectWithTag("PlayerLight").GetComponent <Light_Control>();
        playerControls = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Controls>();
    }