//Class fieldDim timer As TimeSpan = New TimeSpan(0, 0, 0)//In your Update methodtimer = timer + gameTime.ElapsedGameTimeIf timer > TimeSpan.FromSeconds(5) Then // 5 seconds have elapsed handle what you wanted to doEnd If
沒有留言:
張貼留言