// Start is called before the first frame update void Awake() { rb = GetComponent <Rigidbody2D>(); playerHealth = FindObjectOfType <HealthBarManager>(); getLvl = FindObjectOfType <SoalManager>(); }
//Soal /*public Question[] questions; * private static List<Question> unansweredQuestions; * private Question currentQuestion; * * [SerializeField] * public GameObject soalText;*/ void Start() { //Sound playerAS = GetComponent <AudioSource> (); //Soal /*if (unansweredQuestions == null || unansweredQuestions.Count == 0){ * unansweredQuestions = questions.ToList<Question>(); * } * * SetCurrentQuestion(); * Debug.Log (currentQuestion.soal + " adalah " + currentQuestion.jawaban);*/ KomponenSoal = GameObject.Find("Main Camera").GetComponent <SoalManager> (); //KomponenEnemy = GameObject.Find("MusuhKnight").GetComponent<enemy>(); gameui.SetActive(true); //infonyawaM = GameObject.Find ("UInyawaM").GetComponent<Text> (); /*infoscore = GameObject.Find ("UIscore").GetComponent<Text> (); * infonyawa = GameObject.Find ("UInyawa").GetComponent<Text> ();*/ lompat = GetComponent <Rigidbody2D> (); anim = GetComponent <Animator>(); mulai = transform.position; //sa.name = "a"; }
private void Awake() { soal = FindObjectOfType <SoalManager>(); elenUICounter = FindObjectOfType <ElenCounter>(); }
// Start is called before the first frame update void Awake() { skorText = GetComponent <TextMeshProUGUI>(); skorInit = FindObjectOfType <SoalManager>(); }
private void Awake() { soal = FindObjectOfType <SoalManager>(); itemSprite.gameObject.SetActive(false); }