コード例 #1
0
 public override void Run()
 {
     try
     {
         int location = Scene.GetComponent <LocationComponent>().Get(key);
         this.tcs.SetResult(location);
     }
     catch (Exception e)
     {
         this.tcs.SetException(e);
     }
 }
コード例 #2
0
 public override void Run()
 {
     try
     {
         Scene.GetComponent <LocationComponent>().Lock(this.key, this.lockAppId, this.time);
         this.tcs.SetResult(true);
     }
     catch (Exception e)
     {
         this.tcs.SetException(e);
     }
 }