Esempio n. 1
0
    private void Awake()
    {
        if (instance != null)
        {
            Debug.LogWarning("BeatMaster instantiat de doua ori");
            Destroy(gameObject);
        }
        m_ObserverList = new List <IBeat>();
        instance       = gameObject.GetComponent <BeatMaster>();
        m_Audio        = GetComponent <AudioSource>();
        ReadBeat beatReader = new ReadBeat();

        m_BeatsList = beatReader.GetBeatList();

        m_BeatParity = BEAT_PARITY.Even;
    }
Esempio n. 2
0
 void ChangeBeatParity()
 {
     m_BeatParity = m_BeatParity == BEAT_PARITY.Even ? BEAT_PARITY.Odd : BEAT_PARITY.Even;
 }