Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        for (int i = 0; i < MINILIGHT; i++)
        {
            //missionLight[i] = GameObject.FindGameObjectWithTag("MiniLight");
            miniLightScript[i] = miniLight[i].GetComponent <MiniLight>();
        }

        for (int i = 0; i < BRANCH; i++)
        {
            branchScript[i] = branch[i].GetComponent <Branch>();
        }

        goalLightScript = goalLight.GetComponent <GoalLight>();
        GameManager.Instance.sceneInformation = LoadUserState.Instance.stageInfo[0];
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     meshRenderer    = GetComponent <MeshRenderer>();
     goalLight       = GameObject.FindGameObjectWithTag("GoalLight");
     goalLightScript = goalLight.GetComponent <GoalLight>();
 }