Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     mGame = GameObject.FindGameObjectWithTag ( "Manager" ).GetComponent<GameManager> ();
     if ( mGame.CheckItem ( "JournalPagePlains" ) )
     {
         GameObject JournalPage = Instantiate ( Resources.Load ( "JournalPagePlains", typeof ( GameObject ) ) ) as GameObject;
         mGame.DoNotSpawnOnLoad ( "JournalPagePlains" );
     }
 }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        //Beach will have the boat that needs to be fixed and the bag to pick up
        mGame = GameObject.FindGameObjectWithTag ( "Manager" ).GetComponent<GameManager> ();

        if ( mGame.CheckItem ( "JournalPageSeaCave" ) )
        {
            GameObject JournalPage = Instantiate ( Resources.Load ( "JournalPageSeaCave", typeof ( GameObject ) ) ) as GameObject;
            mGame.DoNotSpawnOnLoad ( "JournalPageSeaCave" );
        }
        if (mGame.CheckItem("hammer"))
        {
            GameObject Backpack = Instantiate(Resources.Load("hammer", typeof(GameObject))) as GameObject;
        }
    }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        //The Forest has wood as a key item for fixing the boat
        mGame = GameObject.FindGameObjectWithTag("Manager").GetComponent<GameManager>();

        if ( mGame.CheckItem ( "JournalPageDocks" ) )
        {
            GameObject JournalPage = Instantiate ( Resources.Load ( "JournalPageDocks", typeof ( GameObject ) ) ) as GameObject;
            mGame.DoNotSpawnOnLoad ( "JournalPageDocks" );
        }
        if (mGame.CheckItem("rope"))
        {
            GameObject Backpack = Instantiate(Resources.Load("rope", typeof(GameObject))) as GameObject;
        }
    }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        //Beach will have the boat that needs to be fixed and the bag to pick up
        mGame = GameObject.FindGameObjectWithTag ( "Manager" ).GetComponent<GameManager> ();

        if ( mGame.CheckItem ( "Backpack" ) )
        {
            GameObject Backpack = Instantiate ( Resources.Load ( "Backpack", typeof ( GameObject ) ) ) as GameObject;
        }
        if ( mGame.CheckItem ( "JournalPageBeach" ) )
        {
            GameObject JournalPage = Instantiate ( Resources.Load ( "JournalPageBeach", typeof ( GameObject ) ) ) as GameObject;
            mGame.DoNotSpawnOnLoad ( "JournalPageBeach" );
        }
        if (!(mGame.CheckItem("glasses") && mGame.CheckItem("watch")))
        {
            GameObject photo = Instantiate(Resources.Load("photo", typeof(GameObject))) as GameObject;
            photo.name = "photo";
        }
    }