Beispiel #1
0
 public static void FirstGrapeCollected()
 {
     if (currentProgressionState == ActivitiesProgression.Collecting)
     {
         currentProgressionState = ActivitiesProgression.Stepping;
     }
 }
Beispiel #2
0
    private void Awake()
    {
        gameOverOverlay.SetActive(false);
        currentTime = maxTime;
        timerGauge.transform.localScale = Vector3.one;
        isCounting = true;
        currentProgressionState = ActivitiesProgression.Collecting;

        danceMatActivity.gameObject.SetActive(false);
        bottlingActivity.gameObject.SetActive(false);

        CloudConnectorCore.processedResponseCallback.RemoveAllListeners();
        CloudConnectorCore.processedResponseCallback.AddListener(this.ParseData);
        StartCoroutine(LoadWineQuantities());
        LoadTwitterUserInfo();
    }
Beispiel #3
0
    private void Update()
    {
        if (isCounting)
        {
            if (currentTime < 0f)
            {
                GameOver();
            }
            else
            {
                DecreaseTimer();
            }
        }

        if (!bottlingActivity.gameObject.activeSelf && ResourcesMaster.GetResourceAmount("juice") >= ResourcesMaster.GetResourceData("bottle").requiredToGeneratedRatio)
        {
            bottlingActivity.gameObject.SetActive(true);
            currentProgressionState = ActivitiesProgression.Bottling;
        }

        if (Input.GetButtonDown("Reset"))
        {
            System.GC.Collect();
            SceneManager.LoadScene(SceneManager.GetActiveScene().name);
        }
        else if (Input.GetButtonDown("Pause"))
        {
            if (isPaused)
            {
                ClosePauseMenu();
            }
            else
            {
                OpenPauseMenu();
            }
        }
    }