public void closeConfirmComp() { nameInput.text = ""; confirmComp.SetActive(false); UtilBools.playerInteractLock(false); GC.audioMixer.playButtonSFX(); }
public void editSign() { if (!editing) { editSignButton.SetActive(false); saveSignButton.SetActive(true); signInput.text = signText.text; signText.gameObject.SetActive(false); signInput.gameObject.SetActive(true); editing = true; UtilBools.playerInteractLock(true); } else { editSignButton.SetActive(true); saveSignButton.SetActive(false); signText.text = signInput.text; signText.gameObject.SetActive(true); signInput.gameObject.SetActive(false); currentSignTile.text = signText.text; editing = false; UtilBools.playerInteractLock(false); } GC.audioMixer.playButtonSFX(); }
public void openConfirmComp() { if (GC.selectedTiles.Count <= 0) { print("No selection"); return; } confirmComp.SetActive(true); setInteractableConfirmComp(true); GC.AC.toggleSelectionBar(false); UtilBools.playerInteractLock(true); GC.audioMixer.playButtonSFX(); }
public void closeSign() { print("Clicked close sign!"); editSignButton.SetActive(true); saveSignButton.SetActive(false); signText.text = signInput.text; signText.gameObject.SetActive(true); signInput.gameObject.SetActive(false); currentSignTile.text = signText.text; currentSignTile = null; editing = false; signObj.transform.position = startPos; signObj.SetActive(false); UtilBools.playerInteractLock(false); GC.audioMixer.playButtonSFX(); }