Пример #1
0
    private IEnumerator ShowPharaonSnakeCoroutine()
    {
        m_serpentDePharaon.SetActive(true);

        yield return(new WaitForSeconds(5));

        float timeRating = Time.time - m_startTime;

        if (timeRating <= 180)
        {
            timeRating = 10;
        }
        else
        {
            timeRating = (900 - timeRating) / 720;
            if (timeRating < 0)
            {
                timeRating = 0;
            }
        }

        float wasteRating = (10 / (Watcher.WastedCompoundQuantity() / 500 + 1) - 3.33f) * 3 / 2;

        wasteRating = Mathf.Max(0, Mathf.Min(10, wasteRating));

        EndSimulationUI.ShowRatings(timeRating, m_stackSize * 10, wasteRating);
        Instructor.PlaySuccessfulEndSounds();
    }
Пример #2
0
 private void Awake()
 {
     s_singleton = this;
     Hide();
 }