示例#1
0
 public void Throw(Throwable throwable, Vector3 position, Quaternion rotation)
 {
     if (amtOfThrowables > 0 && Time.time > lastThrowTime + throwCoolDown)
     {
         lastThrowTime = Time.time;
         amtOfThrowables--;
         uiController.Ammo(amtOfThrowables);
         Throwable throwableClone = (Throwable)Instantiate(throwable, position, rotation);
         throwableClone.Fire(lastMove);
     }
 }