Exemplo n.º 1
0
 //Throws the equipped throwable to the ground unarmed
 public void DropThrowable(Throwable_Class throwableToDrop)
 {
     throwableToDrop.transform.position = ItemDropPosition.position;
     throwableToDrop.transform.rotation = ItemDropPosition.rotation;
     throwableToDrop.Release(ThrowableDropForce, GetComponent <Collider>());
     throwableToDrop.TurnOnInteraction();
     throwableToDrop = null;
 }
Exemplo n.º 2
0
 //Throws the equipped throwable and arms it
 public void ThrowThrowable()
 {
     EquippedThrowableScript.Release(ThrowableForce, GetComponent <Collider>());
     EquippedThrowableScript.SetLive();
     EquippedThrowableScript = null;
 }