Esempio n. 1
0
    private static GameInformation information; //= new GameInformation();
    void Awake()
    {
        //Debug.Log("GameInformaiton Awake start");
        if (information == null)
        {
            DontDestroyOnLoad(gameObject);
            information = this;
            //might have to move the following to out of this if, hope not the, since it would be easy to force to leave the game if an update
            //items
            RPGItemDatabase.BuildItemDatabases();
            //armors

            //weapons

            //static npcs

            //skills
        }
        else if (information != this)
        {
            Destroy(gameObject);
        }
        //monsters

        //Debug.Log("GameInformaiton Awake end");
    }