VisualStudio/C#

[C#] Math.Max를 이용해 최소값 설정

usingsystem 2022. 12. 2. 16:06
728x90
Stat.Hp = Math.Max(Stat.Hp - damage, 0);
728x90