// Use this for initialization void Start() { removePointUI = GameObject.Find("OVRCameraRig/TrackingSpace/CenterEyeAnchor/RemovePointText").GetComponent <PointUI>(); addPointUI = transform.Find("AddPointText").GetComponent <PointUI>(); gameMaster = GameObject.Find("GameMaster"); pointManager = gameMaster.GetComponent <PointManager>(); phaseManager = gameMaster.GetComponent <PhaseManager>(); enemySpowner = GameObject.Find("EnemySpowner").GetComponent <EnemySpowner>(); target = GameObject.Find("OVRCameraRig"); transform.LookAt(targetPosition); }
// Use this for initialization void Start() { infoUI = GameObject.Find("OVRCameraRig/TrackingSpace/CenterEyeAnchor/InfoUI").GetComponent <InfoUI>(); goDevice = GameObject.Find("OVRCameraRig/TrackingSpace").GetComponent <GoDevice>(); pointManager = GetComponent <PointManager>(); timeManager = GetComponent <TimeManager>(); nowPhase = Phase.StartPhase; holdTime = holdTimeMax; instantInfoBoad = Instantiate(infoBoad, boadSpowner.transform.position, boadSpowner.transform.rotation); instantInfoBoad.name = "InfoBoad"; instantInfoBoad.GetComponent <InfoBoad>().WriteInfo(InfoBoad.ruleText); enemySpowner = GameObject.Find("EnemySpowner").GetComponent <EnemySpowner>(); }
IEnumerator ResetScene() { //AsyncOperation op = SceneManager.LoadSceneAsync("01_GamePlaying", LoadSceneMode.Single); AsyncOperation op = SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().buildIndex, LoadSceneMode.Single); op.allowSceneActivation = false; while (!op.isDone) { if (op.progress >= 0.9f) { op.allowSceneActivation = true; } yield return(null); } thisDataReset(); enemySpowner = Instantiate(enemySpownerPrefab, enemySpownrPos, Quaternion.identity); StartCoroutine(UIManager.Instance.TargetTextFadeOutWithTime(UIManager.Instance.text_RoundNotify, "정비 시간", 1.5f, 1)); yield break; }