c# 如何在 declare 每個 variable 時執行同一動作
例如
float leftBtnL = 0.02f * Screen.width;
float topBtnL = 0.12f * Screen.width;
float widthBtnL = 0.1f * Screen.width;
float heightBtnL = 0.04f * Screen.width;
點先可以唔使每次都打 * Screen.width?
如果唔得的話可唔可以 declare 左之後先一次過 * Screen.width?
thanks |
|