示例#1
0
 void LevelDone(END_RESULT result)
 {
     if (result == END_RESULT.WIN)
     {
         ++curentLevel;
     }
 }
 void LevelFinished(END_RESULT result)
 {
     transform.localScale = Vector3.one;
     if (result == END_RESULT.LOSE)
     {
         StartCoroutine(StartResultAnim("MISSION FAILED!"));
     }
     else
     {
         StartCoroutine(StartResultAnim("YOU WIN!"));
     }
 }
示例#3
0
    // Update is called once per frame
    void Update()
    {
        if (callUpdateLoop)
        {
            if (currentSlider.value > 0)
            {
                //Debug.LogError(((currentRate + (currentRate * modifier)) * Time.deltaTime) + " " + (modifier));
                currentSlider.value = currentSlider.value - ((currentRate + (currentRate * modifier)) * Time.deltaTime);
            }
            else
            {
                END_RESULT result = isPlayer ? END_RESULT.LOSE : END_RESULT.WIN;
                if (ActionManager.OnLevelFinished != null)
                {
                    ActionManager.OnLevelFinished(result);
                }

                callUpdateLoop = false;
            }
        }
    }
示例#4
0
 void OnLevelFinished(END_RESULT result)
 {
     callUpdateLoop = false;
 }