コード例 #1
0
    // 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();
        }
    }
コード例 #2
0
    public buttonActive button1;     // Manggil Script


    // Use this for initialization
    void Start()
    {
        button1 = FindObjectOfType <buttonActive> ();        // Declarasi script yang dipanggil
        gameOver1.SetActive(false);
    }
コード例 #3
0
//	public bool kebalOn;



    // Use this for initialization
    void Start()
    {
        button = FindObjectOfType <buttonActive> ();        // Declarasi script yang dipanggil
        kebal  = FindObjectOfType <PlayerController>();
        PauseUI.SetActive(false);
    }
コード例 #4
0
ファイル: finish.cs プロジェクト: monyetbeku/GameDevelopment
 // Use this for initialization
 void Start()
 {
     button = FindObjectOfType <buttonActive> ();        // Declarasi script yang dipanggil
     finish1.SetActive(false);
 }