倒计时

时间:2014-05-16 04:36:24   收藏:0   阅读:342

Using UnityEngine;

public class TimeDela:MonoBehavior{

    float myScencons=0;

    public long time=100;

    void Updata(){

        myScencons+=Time.deltaTime;

        if(myScencons>=1){

            time--;

            myScencons=0;

        }

    }

}

倒计时,布布扣,bubuko.com

原文:http://www.cnblogs.com/HelloUnity/p/3729442.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!