家
This commit is contained in:
15
2Areas/游戏开发/Dispose的一些用法.md
Normal file
15
2Areas/游戏开发/Dispose的一些用法.md
Normal file
@@ -0,0 +1,15 @@
|
||||
``` CSharp
|
||||
//等待胜利动画结束的时候dispose
|
||||
// 键盘的可以重新操作
|
||||
// 时间冻结功能
|
||||
async Task DoVectorySequence(){
|
||||
using(new DisposableLockKeyboardInput())
|
||||
using(new DisposableLockUIInput())
|
||||
using(new DisposableFreezeTime()){
|
||||
ShakeScreen();
|
||||
PlayVictorySound();
|
||||
await PlayVictoryAniation();
|
||||
}
|
||||
}
|
||||
```
|
||||
符合Leo顺序规范
|
||||
Reference in New Issue
Block a user