예제 #1
0
    private void OnNormalClicked()
    {
        mg_BeanCounter active = MinigameManager.GetActive <mg_BeanCounter>();

        active.GameMode = mg_bc_EGameMode.JELLY_NORMAL;
        ShowInstructions();
    }
예제 #2
0
    protected override void Awake()
    {
        mg_BeanCounter active = MinigameManager.GetActive <mg_BeanCounter>();

        active.StartGame();
        base.Awake();
    }
예제 #3
0
    private void OnHardClicked()
    {
        mg_BeanCounter active = MinigameManager.GetActive <mg_BeanCounter>();

        active.GameMode = mg_bc_EGameMode.JELLY_HARD;
        ShowInstructions();
    }
예제 #4
0
    private void OnExtremeClicked()
    {
        mg_BeanCounter active = MinigameManager.GetActive <mg_BeanCounter>();

        active.GameMode = mg_bc_EGameMode.JELLY_EXTREME;
        ShowInstructions();
    }
예제 #5
0
    public void OnInstructionsClicked()
    {
        mg_BeanCounter active = MinigameManager.GetActive <mg_BeanCounter>();

        active.GameMode = mg_bc_EGameMode.COFFEE_NORMAL;
        ShowInstructions();
    }
예제 #6
0
    public void OnPlayClicked()
    {
        mg_BeanCounter active = MinigameManager.GetActive <mg_BeanCounter>();

        active.GameMode = mg_bc_EGameMode.COFFEE_NORMAL;
        UIManager.Instance.PopScreen();
        MinigameManager.GetActive <mg_BeanCounter>().LaunchGame();
    }
예제 #7
0
    private void Update()
    {
        mg_BeanCounter active = MinigameManager.GetActive <mg_BeanCounter>();

        if (active != null && active.GameLogic != null)
        {
            int goalProgress = active.GameLogic.GetGoalProgress();
            int goal         = active.GameLogic.GetGoal();
            m_label.text = goalProgress + "/" + goal;
        }
    }