// Use this for initialization void Start() { player = FindObjectOfType <PlayerController> (); // Declarasi script yang dipanggil button = FindObjectOfType <buttonActive> (); // Declarasi script yang dipanggil if (textFile != null) { textLines = (textFile.text.Split('\n')); } if (endLine == 0) { endLine = textLines.Length - 1; } if (isActive) { EnableTextBox(); } else { DisableTextBox(); } }
public buttonActive button1; // Manggil Script // Use this for initialization void Start() { button1 = FindObjectOfType <buttonActive> (); // Declarasi script yang dipanggil gameOver1.SetActive(false); }
// public bool kebalOn; // Use this for initialization void Start() { button = FindObjectOfType <buttonActive> (); // Declarasi script yang dipanggil kebal = FindObjectOfType <PlayerController>(); PauseUI.SetActive(false); }
// Use this for initialization void Start() { button = FindObjectOfType <buttonActive> (); // Declarasi script yang dipanggil finish1.SetActive(false); }