SawNoteNumber note_num_script; // 파괴 X 싱글톤, 노트모은개수 확인 void Start() { Cursor.lockState = CursorLockMode.None; mainCam = GetComponent <Camera>();//Camera.main; OutlineController = GameObject.FindObjectOfType <DrawOutline_HJ>(); //layerMask = 1 << LayerMask.NameToLayer("Item"); selectSlot_script = GameObject.FindObjectOfType <SelectSlot>(); text_script = puzzleText.gameObject.GetComponent <FadeAni_text>(); guide_script = puzzleImage.gameObject.GetComponent <FadeAni_guide>(); guideController_script = puzzleImage.gameObject.GetComponent <GuideCaption_Controller>(); ChangeCam_script = GameObject.FindObjectOfType <ChangeCam_1stage>(); CarPuzzle_script = GameObject.FindObjectOfType <MouseController_CarPuzzle>(); boxOpen_script = GameObject.FindObjectOfType <BoxOpen>(); viewNote_script = GameObject.FindObjectOfType <ViewNote_01>(); checkRange_Script = GameObject.FindObjectOfType <CheckRange>(); // 쪽지 매니저 notemager = FindObjectOfType <NoteManger>(); // 쪽지 상태 (싱글톤) note_num_script = FindObjectOfType <SawNoteNumber>(); }
void Start() { speed = 10.0f; isMoving = false; direction = Vector3.zero; destination = Vector3.zero; blockType = (BlockType)bType; clear = false; //BlockUnit의 트리거로 초기화를 했을때 필요 //if ((int)blockType % 2 == 0) // location = new int[2]; //else // location = new int[3]; //System.Array.Clear(location, 0, location.Length); //init = false; blockManager = GameObject.Find("BlockManager").GetComponent <BlockManager>(); mouseController = GameObject.Find("MouseCotroller").GetComponent <MouseController_CarPuzzle>(); _origin_pos = transform.position; _origin_location = new int[location.Length]; for (int i = 0; i < _origin_location.Length; i++) { _origin_location[i] = location[i]; } }
void Start() { mainCamera = Camera.main; bpCamera = GetComponent <Camera>(); mainListener = mainCamera.GetComponent <AudioListener>(); fpListener = GetComponent <AudioListener>(); //초기화 mainListener.enabled = true; fpListener.enabled = false; spotlight_script = GameObject.FindObjectOfType <FadeAni_Spotlight>(); actionController = mainCamera.GetComponent <ActionController_01>(); carPuzzle_script = GameObject.FindObjectOfType <MouseController_CarPuzzle>(); playerController = GameObject.FindObjectOfType <Player_1stage>(); }