void NearForge() { if (forge.showUp) { if (!closeEnough) { if (!craftSystem.CheckIsFree()) { return; } if (Vector2.Distance(this.transform.position, forge.fixed_pos) < forge_dis) { forge.SwitchHint(true); closeEnough = true; craftSystem.ArrowEnable(false); craftSystem.craftFunc = false; forge.transform.GetComponent <COutLine>().SetOutLine(true); //if (!forge.isHeat) //{ // if (craftSystem.CheckHandle().id == 3) // { // closeEnough = true; // craftSystem.ArrowEnable(false); // craftSystem.craftFunc = false; // forge.transform.GetComponent<COutLine>().SetOutLine(true); // } //} //else { // closeEnough = true; // craftSystem.ArrowEnable(false); // craftSystem.craftFunc = false; // forge.transform.GetComponent<COutLine>().SetOutLine(true); //} } } else { if (Vector2.Distance(this.transform.position, forge.fixed_pos) >= forge_dis) { closeEnough = false; craftSystem.ArrowEnable(true); craftSystem.craftFunc = true; forge.transform.GetComponent <COutLine>().SetOutLine(false); forge.SwitchHint(false); } } } }