Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

codingfarm

시간 본문

Unity3d

시간

scarecrow1992 2022. 2. 21. 22:13

 

 

쿨타임

1
2
3
4
5
6
7
8
float msBetweenFire, nextTime;
 
public void Fire() {
    if(Time.time > nextTime){
        nextTime = Time.time + msBetweenFire / 1000;
        /* functions */
    }
}
cs

 

 

 

'Unity3d' 카테고리의 다른 글

네비게이션 메쉬(Navigation Mesh)  (0) 2022.02.22
상속  (0) 2022.02.21
생성  (0) 2022.02.21
이동  (0) 2022.02.21
Ray  (0) 2022.02.21
Comments