コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        timeElapsed   += Time.deltaTime;
        timeRemaining -= Time.deltaTime;
        PersistentManagerScript.Globals.sliders.transform.Find("Crystal Slide").GetComponent <Slider>().value = timeRemaining / timeToCompleteLevel;

        if (timeRemaining < 0 && !dead)
        {
            StageFail.Failure();
            dead = true;
        }
    }
コード例 #2
0
 void OnCollisionEnter(Collision col)
 {
     StageFail.Failure();
 }