public void Fire(Transform target) { OnRelease (); if (projectile == null) return; projectile.transform.forward = transform.forward; projectile.target = getRawTarget ? target : target.GetTarget(); projectile.Fire (); projectile = null; }
public void Next() { target = targetList.NextOrDefault (t => t == target); actualTarget = target.GetTarget (); }