Exemple #1
0
    void Start()
    {
        junakSkripta           = junak.GetComponent <NewBehaviourScript> ();
        trezorSkripta          = trezor.GetComponent <TrezorSkripta> ();
        steviloZogic           = prostorZogic.GetComponent <SteviloZogicSkripta> ();
        coliderJunak           = junak.GetComponent <BoxCollider2D> ();
        coliderJunak.isTrigger = true;

        junakSkripta.omogociPremikanje = false;

        palcekSkripta        = palcek.GetComponent <PalcekAI> ();
        palcekSkripta.xTocka = -3.3f;
        stanje = 0;
        akcija.SetActive(false);
    }
    void Start()
    {
        junakSkripta = junak.GetComponent <NewBehaviourScript> ();

        steviloZogic           = prostorZogic.GetComponent <SteviloZogicSkripta> ();
        coliderJunak           = junak.GetComponent <BoxCollider2D> ();
        coliderJunak.isTrigger = true;

        junakSkripta.omogociPremikanje = false;
        junakSkripta.xTocka            = -8;
        junakSkripta.stojimNaMestuX    = false;

        palcekSkripta        = palcek.GetComponent <PalcekAI> ();
        palcekSkripta.xTocka = 15.5f;
        stanje = 0;
        caneZaJaw.SetActive(false);
    }
Exemple #3
0
 void Start()
 {
     palcekSkripta = palcek.GetComponent <PalcekAI> ();
 }