public void OpenRedFolder() { if (_OpenRedFolderSound != null) { _OpenRedFolderSound.Play(); } if (!_TurnOn) { _TurnOn = true; _CounterScript.Plus1(); } _Image.sprite = _RedFolderSprite; _XScript.ChangeImage(_ErrorTextSprite); _XScript.ChangeText(""); }
public void OnPointerClick(PointerEventData eventData) { if (!dragging) { //_image.gameObject.SetActive(true); //_image.sprite = _EvidenceImage; //_text.text = _evidenceText; if (_SoundOnClick != null) { _SoundOnClick.Play(); } _XbuttonScript.ChangeImage(_EvidenceImage); _XbuttonScript.ChangeText(_evidenceText); _XbuttonScript.CurrentPrefab(this.GetComponent <OnClickImageScript>()); _VerdictScript.TurnOff(); OpenCloseFolder(true); //true if you want to open, false if you want to close // if (_IsThisTutorial) // _TutorialUI.SetActive(false); } }