// Start is called before the first frame update void Start() { meshRenderer = GetComponent <MeshRenderer>(); goalLight = GameObject.FindGameObjectWithTag("GoalLight"); goalLightScript = goalLight.GetComponent <NoRenderGoalLight>(); stageManager = GameObject.FindGameObjectWithTag("StageManager"); }
// Start is called before the first frame update void Start() { audioSource = gameObject.GetComponent <AudioSource>(); for (int i = 0; i < MINILIGHT; i++) { //missionLight[i] = GameObject.FindGameObjectWithTag("MiniLight"); miniLightScript[i] = miniLight[i].GetComponent <SnowMan>(); } for (int i = 0; i < BRANCH; i++) { branchScript[i] = branch[i].GetComponent <Branch>(); } goalLightScript = goalLight.GetComponent <NoRenderGoalLight>(); GameManager.Instance.sceneInformation = LoadUserState.Instance.stageInfo[2]; }