public void PushAlchemyButton()//물약 완성하기 버튼 클릭시 발동하는 함수 { SoundManager.sounds["DoAlchemy"].Play(); GameObject MiniMaterial = GameObject.FindGameObjectWithTag("MiniMaterial"); SkillSetManager.EffectDeleteFunc(); Destroy(MiniMaterial); PotionList.makePotion(); PotionList.CompleteSkill2 = false; PotionList.CompleteSkill3 = false; Skill.cantChange = false; Skill.cantEnforce = false; Skill.cantEnfPotion = false; pushMaterial = false; pushFlask = false; Skill.nowSkill = false; ResetGuage(); }
void OnTriggerExit2D(Collider2D collision) { if (collision.gameObject.name == "DeskSample") { if (FirstMet) { StopCoroutine("UI1Move"); isReady.isReadySell = false; ReadyOrderd = false; GameObject UI1Pos = GameObject.Find("Selling Set"); UI1MovePos = UI1Pos.transform.position; FirstMet = false; StartCoroutine("UI1Move"); } else { StopCoroutine("UI1Move"); isReady.isReadySell = false; ReadyOrderd = false; GameObject UI1Pos = GameObject.Find("Selling Set"); UI1MovePos = new Vector3(-7.9f, 8.5f, -11.0f); StartCoroutine("UI1Move"); } } else if (collision.gameObject.name == "Potion Desk") { StopCoroutine("UI2Move"); GameObject UI2Pos = GameObject.Find("Making Set"); UI2MovePos = UI2Pos.transform.position; //InUi2 = false; UI2MovePos.y += 10.5f; StartCoroutine("UI2Move"); } else if (collision.gameObject.name == "Gama") { StopCoroutine("UI3Move"); FindPotionCase.StopCoroutine("FindCase"); InUi3 = false; GameObject UI3Pos = GameObject.Find("Alchemy Set"); UI3MovePos = new Vector3(-10.6f, 10.7f, -10.0f); StartCoroutine("UI3Move"); } else if (collision.gameObject.name == "Gama2") { StopCoroutine("UI4Move"); GameObject useSkill = GameObject.Find("SkilllManager"); PushSkillButton = useSkill.GetComponent <SkillSetManager>(); useButton = PushSkillButton.useSkillButton; GameObject UI4Pos = GameObject.Find("Skill Set"); UI4MovePos = UI4Pos.transform.position; if (useButton == true) { UI4MovePos.y -= 8f; PushSkillButton.useSkillButton = false; } StartCoroutine("UI4Move"); } else if (collision.gameObject.name == "MarchentChar") { isFurniture = false; StopCoroutine("UI5Move"); GameObject UI5Pos = GameObject.Find("Furniture Set"); if (!FurnitureSet.PushedBuyButton) { UI5MovePos = new Vector3(-0.2f, 9.8f, -10.0f); } else { UI5MovePos = new Vector3(6.3f, 9.8f, -10.0f); } StartCoroutine("UI5Move"); } else if (collision.gameObject.name == "SkillMaster") { StopCoroutine("UI6Move"); GameObject UI6Pos = GameObject.Find("SkillUp Set"); UI6MovePos = new Vector3(-5.7f, 9.0f, -10.0f); StartCoroutine("UI6Move"); } }