SetDisabled() public méthode

public SetDisabled ( bool dis ) : void
dis bool
Résultat void
Exemple #1
0
    IEnumerator coGripe()
    {
        //KidGripe
        audio.PlayOneShot(KT1);
        yield return(new WaitForSeconds(1.5f));

        audio.PlayOneShot(GP1);
        yield return(new WaitForSeconds(5.3f));

        audio.PlayOneShot(KT2);
        yield return(new WaitForSeconds(2.6f));

        //audio.PlayOneShot(GP2);
        //yield return new WaitForSeconds(3.4f);

        //audio.PlayOneShot(KT3);
        //yield return new WaitForSeconds(3f);
        audio.PlayOneShot(GP3);
        yield return(new WaitForSeconds(4.8f));

        audio.PlayOneShot(KT3);
        yield return(new WaitForSeconds(3f));

        //enable gameinputs
        StartCoroutine(coInstructions());
        input.SetDisabled(false);

        StartCoroutine(coImaPirate());
    }
Exemple #2
0
    //AudioSource audio;

    // Use this for initialization
    void Start()
    {
        input = GameObject.Find("Scene").GetComponent <Inputs>();

        StartCoroutine(coLogo());
        StartCoroutine(coMoveDock());
        StartCoroutine(coGripe());
        StartCoroutine(coEndGame());

        input.SetDisabled(true);
    }
Exemple #3
0
    //AudioSource audio;
    // Use this for initialization
    void Start()
    {
        input = GameObject.Find("Scene").GetComponent<Inputs>();

        StartCoroutine(coLogo());
        StartCoroutine(coMoveDock());
        StartCoroutine(coGripe());
        StartCoroutine(coEndGame());

        input.SetDisabled(true);
    }