Ejemplo n.º 1
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;
        }
    }
Ejemplo n.º 2
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;
        }
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     mGame = GameObject.FindGameObjectWithTag("Manager").GetComponent<GameManager>();
     if ( mGame.CheckItem("Bow") )
     {
         GameObject Bow = Instantiate(Resources.Load("Bow", typeof(GameObject))) as GameObject;
     }
 }
Ejemplo n.º 4
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" );
     }
 }
Ejemplo n.º 5
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("wood"))
        {
            GameObject Backpack = Instantiate(Resources.Load("wood", typeof(GameObject))) as GameObject;
        }
    }
Ejemplo n.º 6
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";
        }
    }