IEnumerator IntructionTiming() { panelRintangan.SetText(textData[i]); yield return(new WaitForSeconds(2f)); //_textManager.clearText(); panelRintangan.closePanel(); }
public void OnTriggerExit2D(Collider2D other) { if (other.CompareTag("Player")) { //_textManager.clearText(); panelRintangan.closePanel(); StopAllCoroutines(); Debug.Log("exit jalur lambat"); } }
public void OnTriggerExit2D(Collider2D other) { if (other.CompareTag("Player")) { StopAllCoroutines(); //_textManager.clearText(); panelRintangan.closePanel(); lampuPanel.closeLampu(); } }