//================================ //20/12/04 イゴンヒ /// <summary> /// 編成画面ボタンを押した時 /// </summary> public void OnOpenOrganization() { //if (is_runing == true || is_organ_Open) return; if (is_runing == true) { return; } //is_organ_Open = true; //ステージ選択画面が開いた状態と編成画面が閉じた状態なら if (is_stage_Open == true && is_organ_Open == false) { is_organ_Open = true; stageSelect_Canvas_raycaster.enabled = false; organization_Canvas_raycaster.enabled = true; organizationCanvas.sortingOrder = 1; stageSelectCanvas.sortingOrder = 0; //StartCoroutine(organizationMask.Open(stageSelectMask, organization)); StartCoroutine(organizationMask.Close_Open(stageSelectMask, organization, stageSelect));//ステージ選択画面を閉じて編成画面を開く is_stage_Open = false; //------------------------------------------------------------ audioSouce.PlayOneShot(makimono); //------------------------------------------------------------ } //ステージ選択画面が閉じた状態ならステージ選択画面を開く else if (is_organ_Open == false) { is_organ_Open = true; stageSelect_Canvas_raycaster.enabled = false; organization_Canvas_raycaster.enabled = true; StartCoroutine(organizationMask.Open(organization)); //------------------------------------------------------------ audioSouce.PlayOneShot(makimono); //------------------------------------------------------------ } //ステージ選択画面が開いた状態ならステージ選択画面を閉じる else if (is_organ_Open == true) { is_organ_Open = false; stageSelect_Canvas_raycaster.enabled = false; organization_Canvas_raycaster.enabled = true; StartCoroutine(organizationMask.Close(organization)); //------------------------------------------------------------ audioSouce.PlayOneShot(makimono); //------------------------------------------------------------ } //================================ }
//================================ //20/12/04 イゴンヒ /// <summary> /// ステージ選択画面を押した時 /// </summary> public void OnOpenStageSelect() { //if (is_runing == true || is_stage_Open) return; if (is_runing == true) { return; } if (is_organ_Open == true && is_stage_Open == false) { is_stage_Open = true; organization_Canvas_raycaster.enabled = false; stageSelect_Canvas_raycaster.enabled = true; stageSelectCanvas.sortingOrder = 1; organizationCanvas.sortingOrder = 0; StartCoroutine(organizationMask.Open(organization)); StartCoroutine(stageSelectMask.Close_Open(organizationMask, stageSelect, organization)); is_organ_Open = false; //------------------------------------------------------------ audioSouce.PlayOneShot(makimono); //------------------------------------------------------------ } else if (is_stage_Open == false) { is_stage_Open = true; organization_Canvas_raycaster.enabled = false; stageSelect_Canvas_raycaster.enabled = true; StartCoroutine(stageSelectMask.Open(stageSelect)); //------------------------------------------------------------ audioSouce.PlayOneShot(makimono); //------------------------------------------------------------ } else if (is_stage_Open == true) { is_stage_Open = false; organization_Canvas_raycaster.enabled = false; stageSelect_Canvas_raycaster.enabled = false; StartCoroutine(stageSelectMask.Close(stageSelect)); //------------------------------------------------------------ audioSouce.PlayOneShot(makimono); //------------------------------------------------------------ } //================================ }