Beispiel #1
0
    void Start()
    {
        if (m_instance == null)
        {
            m_instance = this;

            m_rhythmosDatabase = new RhythmosDatabase();

            m_rhythmosDatabase.LoadRhythmosDatabase(m_rhythmosFile);

            DontDestroyOnLoad(this);
        }
        else
        {
            if (this != m_instance)
            {
                Destroy(this.gameObject);
            }
        }
    }
 // Use this for initialization
 void Awake()
 {
     m_rhythmosDatabase = new RhythmosDatabase(m_rhythmosFile);
 }