雜七雜八,程式碼、Unity、還有遊戲
func startTimer(){ if self.timer == nil{ timer = Timer.scheduledTimer(timeInterval: REFRESH_DURATION_SEC, target: self, selector: #selector(endTimer), userInfo: nil, repeats: false) } }