예제 #1
0
 public void OnUpdate()
 {
     if (DualityApp.Keyboard.KeyHit(Input.Key.Space))
     {
         if (c == null)
         {
             c = Coroutine.Start(DoMagic(this.GameObj.ParentScene.FindComponent <Camera>()));
         }
         else
         {
             c.Abort();
         }
     }
     if (DualityApp.Keyboard.KeyHit(Input.Key.X))
     {
         Coroutine.Start(Spawner(new Transform()));
     }
 }