Exemplo n.º 1
0
 public void DropGem(Vector3 dropDirection)
 {
     for (int i = 0; i < droppedGemsPerHit; i++)
     {
         Gem droppedGem = TryRemoveGemFromPouch();
         if (droppedGem != null)
         {
             Debug.Log("Dropped gem");
             StartCoroutine(droppedGem.IgnoreCollisionsForSomeTime(gameObject.GetComponent <Collider>(), stunTime));
             droppedGem.transform.position = transform.position;
             droppedGem.DropForce(dropDirection, 3f);
         }
     }
 }