public void ThrowGren(Transform t, Player p, Ammunition GrenadeType, int grenNum) { if (MainNode.HasNode(_primedGrenade1Name)) { if (grenNum == 1) { _primedGrenade1.Throw(t); } else { _primedGrenade2.Throw(t); } } else { PrimeGren(p, GrenadeType, grenNum); } if (grenNum == 1) { _primedGrenade1 = null; } else { _primedGrenade2 = null; } }
private void ThrowGren(Vector3 dir) { PrimingGren.Throw(dir); this.PrimingGren = null; }