コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: LockComponent.cs プロジェクト: egametang/Egametang
		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);
		}