using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class jawab : MonoBehaviour { public GameObject feed_benar, feed_salah; // Use this for initialization void Start () { } public void jawaban (bool jawab){ if (jawab) { feed_benar.SetActive (false); feed_benar.SetActive (true); int skor = PlayerPrefs.GetInt ("skor") + 10; PlayerPrefs.SetInt ("skor", skor); } else { feed_salah.SetActive (false); feed_salah.SetActive (true); } } // Update is called once per frame void Update () { } }