Exemplo n.º 1
0
 void UseItem()
 {
     if (transform.childCount > 1 && Input.GetKeyDown(actionButton))
     {
         Completable c = transform.GetChild(1).GetComponent <Completable>();
         if (c != null)
         {
             c.CheckForCompletion();
         }
     }
 }