Exemplo n.º 1
0
    void Awake()
    {
        if (instance == null)
        {
            //Debug.Log("Som t8to in3tancia");
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
            //Debug.Log("Umierammmm, bleee");
        }

        DontDestroyOnLoad(gameObject);
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        und = FindObjectOfType(typeof(UndyingCanvasScrip)) as UndyingCanvasScrip;
        StartCoroutine(PredelAnim());
        Table.SetActive(false);
        TextTable.SetActive(false);
        VyskakovacieOkno.SetActive(false);
        PocetPouzitiHelp = 0;
        VsetkyOdpovede.SetActive(false);
        Wintext.SetActive(false);
        Losetext.SetActive(false);

        otazka.SetActive(false);
        GameObject.Find(MainMenu.Cesta).GetComponent <SpriteRenderer>().enabled = true;
        StartCoroutine(PapyrusAnim());
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        und = FindObjectOfType(typeof(UndyingCanvasScrip)) as UndyingCanvasScrip;
        StartCoroutine(PredelAnim());
        und.ZmenaAnimOblak(4);
        RazPapyrusAnim = true;
        StopHra        = false;
        VyskakovacieOkno.SetActive(false);
        PocetChyb = 0;
        locked    = false;

        timer          = settime;
        timerAnimation = 6;
        WinText.SetActive(false);
        LoseText.SetActive(false);
        Otazka.SetActive(false);
        hladanemiesto.transform.position = new Vector2(9.2f, -2.1f);
    }
Exemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        und = FindObjectOfType(typeof(UndyingCanvasScrip)) as UndyingCanvasScrip;
        StartCoroutine(PredelAnim());
        otazkaviditelna = 0;
        wintext.SetActive(false);
        losetext.SetActive(false);
        VsetkyMoznosti.SetActive(false);
        otazka.SetActive(false);
        Table.SetActive(false);
        TextTable.SetActive(false);
        VyskakovacieOkno.SetActive(false);
        PocetChyb = 0;

        GameObject.Find(MainMenu.Cesta).GetComponent <SpriteRenderer>().enabled = true;
        RandomPoleMoznosti();
        StartCoroutine(PapyrusAnim());
    }
Exemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        und = FindObjectOfType(typeof(UndyingCanvasScrip)) as UndyingCanvasScrip;
        StartCoroutine(PredelAnim());
        prehratraz = 1;
        Table.SetActive(false);
        TextTable.SetActive(false);
        VyskakovacieOkno.SetActive(false);
        PocetChyb = 0;

        VsetkyMoznosti.SetActive(false);
        wintext.SetActive(false);
        losetext.SetActive(false);
        otazka.GetComponent <CanvasRenderer>().SetAlpha(alpha);

        GameObject.Find(MainMenu.Cesta).GetComponent <SpriteRenderer>().enabled        = true;
        GameObject.Find(MainMenu.Cesta).GetComponent <SpriteRenderer>().material.color = new Color(1f, 1f, 1f, 0f);

        RandomPoleMoznosti();
    }
Exemplo n.º 6
0
    public void Start()
    {
        //Screen.fullScreen = !Screen.fullScreen;  // zakazanie fullscreen modu

        RandFrameChoose(); // vyber farby frameu
        und = FindObjectOfType(typeof(UndyingCanvasScrip)) as UndyingCanvasScrip;
        und.PredelPrepinanie(false);
        Zaciatok();

        GalleryControl.UhadnuteMeno     = new List <string>();
        GalleryControl.UhadnutePamiatka = new List <string>();
        GalleryControl.UhadnuteHviezdy  = new List <string>();

        PrveZapnutieHry();

        VyskakOkno.SetActive(false);
        Odpoved.SetActive(false);
        KoniecHry.SetActive(false);
        // Debug.Log("Som tu");
    }
Exemplo n.º 7
0
 void Start()
 {
     und = FindObjectOfType(typeof(UndyingCanvasScrip)) as UndyingCanvasScrip;
 }