Inheritance: MonoBehaviour
Exemplo n.º 1
0
    //---------------------------------------------------------------------------------
    void Start()
    {
        fade            = FindObjectOfType(typeof(fade)) as fade;
        soundController = FindObjectOfType(typeof(SoundController)) as SoundController;

        onOffBotoesPaineis();
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        fade = FindObjectOfType(typeof(fade)) as fade;
        fade.fadeOut();

        DontDestroyOnLoad(this.gameObject);
    }
Exemplo n.º 3
0
    // Start is called before the first frame update
    void Start()
    {
        soundController = FindObjectOfType(typeof(soundCotroller)) as soundCotroller;
        fade            = FindObjectOfType(typeof(fade)) as fade;


        onOfButtonsPainel();
    }
Exemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        fading = GameObject.Find ("Fading").GetComponent<fade>();

        quitMenu = quitMenu.GetComponent<Canvas> ();
        startButton = startButton.GetComponent<Button> ();
        optionsButton = optionsButton.GetComponent<Button> ();
        exitButton = exitButton.GetComponent<Button> ();
        quitMenu.enabled = false;
    }
Exemplo n.º 5
0
    IEnumerator ChangeLevel()
    {
        fade fs = GetComponent <fade>();

        //fs.BeginFade(-1);
        //loadingImage.SetActive(true);
        yield return(new WaitForSeconds(1));

        SceneManager.LoadScene(scene);
    }
Exemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        S = this;

        img = GetComponent<Image>();
        fadingIn = true;
        fadingOut = false;
        changeScene = false;
        t = 0;
        img.color = Color.black;
    }
Exemplo n.º 7
0
    void Start()
    {
        if (instance != null)
        {
            DestroyObject(instance);
            return;
        }

        instance = this;
        this.sr  = this.GetComponent <SpriteRenderer>();
    }
Exemplo n.º 8
0
    // Use this for initialization
    void Start()
    {
        SC   = FindObjectOfType(typeof(soundController)) as soundController;
        fade = FindObjectOfType(typeof(fade)) as fade;

        //Seta página inicial = 0
        idPaginaAtual = 0;
        //Desabilita todos os painéis
        foreach (GameObject b in paineltemas)
        {
            b.SetActive(false);
        }
        //Desabilita os botões de navegação
        foreach (GameObject b in btnPaginacao)
        {
            b.SetActive(false);
        }
        //Começa só com a primeira página
        paineltemas [idPaginaAtual].SetActive(true);

        atualizaBotoesNavegacao();
    }
Exemplo n.º 9
0
 // Update is called once per frame
 void Update()
 {
     Flash();
     if (Input.GetMouseButton(0))
     {
         if (!CountFalg)
         {
             TitleAudio.volume *= 0.5f;
             TapAudio.Play();
         }
         CountFalg = true;
     }
     if (CountFalg == true)
     {
         count += 0.1f;
         fade d2 = Fadefnc.GetComponent <fade>();
         d2.FadeIn();
         if (count > 5f)
         {
             SceneManager.LoadScene("Main");
             CountFalg = false;
         }
     }
 }
Exemplo n.º 10
0
 // Start is called before the first frame update
 void Start()
 {
     gameControler = FindObjectOfType <GameControler>();
     fade          = FindObjectOfType <fade>();
 }
Exemplo n.º 11
0
 void Start()
 {
     fade = FindObjectOfType (typeof(fade)) as fade;
     fade.fadeOut ();
 }
Exemplo n.º 12
0
 // Start is called before the first frame update
 void Start()
 {
     fade         = FindObjectOfType(typeof(fade)) as fade;
     playerScript = FindObjectOfType(typeof(playerScript)) as playerScript;
 }
Exemplo n.º 13
0
 // Use this for initialization
 void Start()
 {
     StartCoroutine("esperaTempo");
     fade = FindObjectOfType(typeof(fade)) as fade;
 }
Exemplo n.º 14
0
 void Start()
 {
     SC   = FindObjectOfType(typeof(soundController)) as soundController;
     fade = FindObjectOfType(typeof(fade)) as fade;
 }
Exemplo n.º 15
0
    // Use this for initialization
    void Start()
    {
        fading = GameObject.Find ("Fading").GetComponent<fade>();

        notAvailable = notAvailable.GetComponent<Canvas> ();
        levelOne = levelOne.GetComponent<Button> ();
        levelTwo = levelTwo.GetComponent<Button> ();
        levelThree = levelThree.GetComponent<Button> ();
        backToMain = backToMain.GetComponent<Button> ();

        notAvailable.enabled = false;
    }
Exemplo n.º 16
0
    public Material luzPadrao, LuzDiffusa; //material sensivel normal e material sensivel a luz

    // Start is called before the first frame update
    void Start()
    {
        scriptPlayer = FindObjectOfType <playerScript>();
        fade         = FindObjectOfType(typeof(fade)) as fade;
    }
Exemplo n.º 17
0
    private void Start()
    {
        fade = FindObjectOfType(typeof(fade)) as fade;

        soundController = FindObjectOfType(typeof(soundCotroller)) as soundCotroller;
    }
Exemplo n.º 18
0
 void Start()
 {
     //Starts the navigation mesh coroutine
     StartCoroutine(NavGen());
     f = GameObject.FindGameObjectWithTag("Fader").GetComponent <fade>();
 }
Exemplo n.º 19
0
 private void Start()
 {
     f     = GameObject.FindWithTag("Fader").GetComponent <fade>();
     fader = GameObject.FindWithTag("Fader");
     f.FadeIn(0.5f);
 }
Exemplo n.º 20
0
 // Start is called before the first frame update
 void Start()
 {
     f = GameObject.FindGameObjectWithTag("Fader").GetComponent <fade>();
     StartCoroutine(nameof(Splash));
 }
Exemplo n.º 21
0
 // Start is called before the first frame update
 void Start()
 {
     fade = FindObjectOfType(typeof(fade)) as fade;
     StartCoroutine("esperar");
 }
Exemplo n.º 22
0
 // Start is called before the first frame update
 void Start()
 {
     f = gameObject.GetComponent <fade>();
 }
Exemplo n.º 23
0
 void Start()
 {
     soundController = FindObjectOfType(typeof(SoundController)) as SoundController;
     fade            = FindObjectOfType(typeof(fade)) as fade;
 }
Exemplo n.º 24
0
 public fade_out(fade _f, float _time)
 {
     this.f    = _f;
     this.time = _time;
 }
Exemplo n.º 25
0
    // Start is called before the first frame update

    void Start()
    {
        spriteRenderer = GetComponent <SpriteRenderer>();
        fade           = FindObjectOfType(typeof(fade)) as fade;
    }
Exemplo n.º 26
0
 private void Start()
 {
     _PlayerScript = FindObjectOfType(typeof(playerScript)) as playerScript;
     fade          = FindObjectOfType(typeof(fade)) as fade;
 }