Ejemplo n.º 1
0
 void Awake()
 {
     touch              = GameObject.Find("Player").GetComponent <PlayerMovements>();
     tickerMsg          = GameObject.Find("DisplayTicker").GetComponent <TickerMessage>(); //r
     newQuest           = GameObject.Find("GUIQUnlock").GetComponent <QuestUnlocked>();
     MusicAudioListener = GameObject.Find("MusicManager").GetComponent <AudioListener>();  //r //comment this if you are about to edit the scene
 }
Ejemplo n.º 2
0
 //Calls Component from a gameobject
 void Awake()
 {
     tickerMsg          = GameObject.Find("DisplayTicker").GetComponent <TickerMessage>();
     newQuest           = GameObject.Find("GUIQUnlock").GetComponent <QuestUnlocked>();
     touch              = GameObject.Find("Player").GetComponent <PlayerMovements>();
     MusicAudioListener = GameObject.Find("MusicManager").GetComponent <AudioListener>();       //r
 }
Ejemplo n.º 3
0
 void Awake()
 {
     GameObject.Find("Player").GetComponent <NewAct4Part3>().enabled = false;
     MakeAllFalse();
     AllFalse();
     touch              = GameObject.Find("Player").GetComponent <PlayerMovements>();
     tickerMsg          = GameObject.Find("DisplayTicker").GetComponent <TickerMessage>(); //r
     newQuest           = GameObject.Find("GUIQUnlock").GetComponent <QuestUnlocked>();
     st                 = GameObject.Find("Store").GetComponent <Store>();
     MusicAudioListener = GameObject.Find("MusicManager").GetComponent <AudioListener>();       //r //comment this if you are about to edit the scene
 }
Ejemplo n.º 4
0
    void Awake()
    {
        //content.image = (Texture2D)textwin;
        touch   = GameObject.Find("Player").GetComponent <PlayerMovements>();
        storage = GameObject.Find("Storage").GetComponent <Storage> ();
        move    = GameObject.Find("Bonifacio_0").GetComponent <Move> ();
//		MusicAudioListener = GameObject.Find("MusicManager").GetComponent<AudioListener>();//r //comment this if you are about to edit the scene
        New = storage.newer;

        if (New == 1)
        {
            isTrigShow = true;
            isHide     = true;
            touch.stopMovements();
            GC       = true;
            onQuest3 = true;
            onQuest1 = false;
            PlayerPrefs.SetInt("stopButton", 0);
            //GameObject.Find("Player").GetComponent<NewAct4FinalPart1>().enabled = true;
        }
        //tickers
        tickerMsg = GameObject.Find("DisplayTicker").GetComponent <TickerMessage>();
        newQuest  = GameObject.Find("GUIQUnlock").GetComponent <QuestUnlocked>();
    }
Ejemplo n.º 5
0
    // Use this for initialization

    void Awake()
    {
        identify  = GameObject.Find("Player").GetComponent <NewAct4Part3>();
        tickerMsg = GameObject.Find("DisplayTicker").GetComponent <TickerMessage>();        //r
        newQuest  = GameObject.Find("GUIQUnlock").GetComponent <QuestUnlocked>();
    }