private void InitLevel() { levelRemainTimer = levelTime; //Reset level Timer isGameover = false; hud = GameManager.Instance.mUIManager.GetPanel(UIPanelType.HUD).GetComponent <HUDPanel>(); levelFinishDirector = player.transform.Find("DollyCamera_LevelFinish").GetComponent <PlayableDirector>(); isPause = true; currentState = StateID.Normal; ballsDelivered = 0; if (hud != null) { hud.UpdateBallCountOnHud(0); } GameManager.Instance.mAudioManager.PlayBGMusic("BGMusic02"); }
public void AddBalls(int count) { ballsDelivered += count; hud.UpdateBallCountOnHud(ballsDelivered); }