void Start() { m_NextDropTime = -1; m_GameLogic = FindObjectOfType<GameLogicScript>(); m_TimeWarper = FindObjectOfType<TimeWarper>(); m_GameLogic.OnGameStart += OnGameStart; m_GameLogic.AddScore(GetFruitScore); m_FruitGrabs = new Dictionary<string, int>(); }
private void Start() { m_NextPancakeTime = -1; m_GameLogic = FindObjectOfType<GameLogicScript>(); m_TimeWarper = FindObjectOfType<TimeWarper>(); m_GameLogic.OnGameStart += OnGameStart; m_GameLogic.OnGameEnd += OnGameEnd; m_GameLogic.AddScore(GetPancakeScore); }