public void StartAni_Note() //이동 { if (stateC) { return; } // - 스크립트 해제 Player_script.SetDeActiveAni(); Player_script.enabled = false; CamMove_Script.enabled = false; coroutine = StartCoroutine(MoveNote_Start()); }
private void CanPickUp() { if (pickupActivated) { if (hitInfo.transform != null) { if (hitInfo.transform.CompareTag("Book_EB")) //compare @ { // - 쪽지상태, 카운트 늘리기 pageNote_script.CheckAddcount(1); // - 쪽지 매니저 notemager._popup = true; // - 외곽선 해제 OutlineController.set_enabled(pre_ol_index, false); pre_ol_index = -1; OutlineController.set_check(false); outline_active = false; // - 클릭버튼 비활성화 actionCaption.SetActive(false); // - 책 팝업 endingBook_script.move_BookAni(); //카메라, 플레이어 이동 불가 fpCam_Script.enabled = false; player_script.SetDeActiveAni(); player_script.enabled = false; //책 팝업상태로 바꾸기 //eB_colider.enabled = false; //hitInfo.collider.enabled = false; -> RewardBook_Open으로 기능 옮김 isPopup = true; InfoDisappear(); //info 삭제 //에임 없애기 Aim.SetActive(false); } if (isLastPage && !flipOver) { if (hitInfo.transform.CompareTag("Key_EB")) //compare @ { if (theInventory.AcquireItem(hitInfo.transform.GetComponent <ItemPickUp>().item)) { //hitInfo.transform.GetComponent<PageNote>().CheckAddcount(1); // - 아이템 습득 hitInfo.transform.gameObject.SetActive(false); //아이템 비활성화 // - 외곽선 해제 OutlineController.set_enabled(pre_ol_index, false); pre_ol_index = -1; OutlineController.set_check(false); outline_active = false; // - 클릭버튼 비활성화 actionCaption.SetActive(false); // getKey = false; InfoDisappear(); //info 삭제 // - 현관 라이트 켜기 //_lightOn_script.LightOnFront(); // - 엔딩 활성화 endingCtrller_script.enabled = true; } } } } } }
private void Check_Do_action() { if (hitaction.transform != null) { //추후에 따로 분리할 예정입니다. //if (hitaction.transform.tag == "Action") //compare @ //{ // int Chestnumber = hitaction.transform.parent.GetComponent<Chestaction>().Chest_number; // moveChest[Chestnumber].transform.parent.GetComponent<Chestaction>().Start_action(1); //} if (hitaction.transform.CompareTag("Note")) //compare @ { //if (AniState == false) //{ // ActionDisappear(); //info 삭제 - 분명 삭제했는데 왜 자꾸 뜬담? // hitaction.transform.GetComponent<PageNote>().CheckAddcount(1); // fpCam_Script.enabled = false; // player_script.enabled = false; // Aim.SetActive(false); // DelayPlay(); //} RewardNote_Check noteScript = hitaction.transform.GetComponent <RewardNote_Check>(); if (noteScript.get_corPossible()) { // - 쪽지 이동 스크립트 _pre_note_script = noteScript; // - 쪽지 매니저 notemager._popup = true; // - 쪽지 상태, UI hitaction.transform.GetComponent <PageNote>().CheckAddcount(1); if (note_num_script != null) { note_num_script.SetNoteCount(); } popupNote = true; //팝업 상태 ActionDisappear(); //info 삭제 - 분명 삭제했는데 왜 자꾸 뜬담? fpCam_Script.enabled = false; player_script.SetDeActiveAni(); player_script.enabled = false; Aim.SetActive(false); // - 외곽선, 클릭버튼 해제보다 먼저 해야함 noteScript.move_NoteAni(); // - 외곽선 해제 OutlineController.set_enabled(pre_ol_index, false); pre_ol_index = -1; OutlineController.set_check(false); outline_active = false; // - 클릭버튼 비활성화 actionCaption.SetActive(false); } } //if (hitaction.transform.CompareTag("Door")) //compare @ //ActionController_Ending 스크립트에 있습니다 //{ // notemager.OpenCondition(); //} } }