public async Task Release() { --this.lockCount; if (this.lockCount != 0) { return; } this.status = LockStatus.LockedNot; Session session = Game.Scene.GetComponent <NetInnerComponent>().Get(this.address); G2G_LockReleaseRequest request = new G2G_LockReleaseRequest(); await session.Call <G2G_LockReleaseResponse>(request); }
public async Task Release() { --this.lockCount; if (this.lockCount != 0) { return; } this.status = LockStatus.LockedNot; Session session = Game.Scene.GetComponent<NetInnerComponent>().Get(this.address); G2G_LockReleaseRequest request = new G2G_LockReleaseRequest(); await session.Call<G2G_LockReleaseRequest, G2G_LockReleaseResponse>(request); }