private void ItlResetLevel() { m_bDiscoPeteCurrentlyDead = false; m_pDiscoPete.Reset(); m_pGridMaster.Reset(); m_pGridMaster.SetDiscoPeteToStart(); m_pGUIMaster.HideText(); }
private void ItlFindObjects() { Debug.Log("LevelAndPointBehaviour::ItlFindObjects"); GameObject guiGO = GameObject.FindWithTag("GUIMaster"); m_pGUIMaster = guiGO.GetComponent <GUIMaster>(); m_pGUIMaster.HideText(); GameObject dpGO = GameObject.FindWithTag("DiscoPete"); m_pDiscoPete = dpGO.GetComponent <DiscoPeteBehaviour>(); GameObject gmGO = GameObject.FindWithTag("GridMaster"); m_pGridMaster = gmGO.GetComponent <GridMaster>(); GameObject bmGO = GameObject.FindWithTag("Music"); m_pBeatMaster = bmGO.GetComponent <BeatMaster>(); m_pBeatMaster.beatEvent += OnBeat; if (m_pGUIMaster == null) { Debug.Log("LevelAndPointBehaviour: GUIMaster not found"); } if (m_pDiscoPete == null) { Debug.Log("LevelAndPointBehaviour: DiscoPeteBehaviour not found"); } if (m_pGridMaster == null) { Debug.Log("LevelAndPointBehaviour: GridMaster not found"); } if (m_pBeatMaster == null) { Debug.Log("LevelAndPointBehaviour: BeatMaster not found"); } }