protected virtual IEnumerator WaitForReload() { yield return(new WaitForSeconds(SelectedEquipmentObject.Template.reloadDuration)); ResetEquipmentVolume(); SelectedEquipmentObject.SetReload(false); }
public virtual void Reload() { if (SelectedEquipmentObject.Reloading || SelectedEquipmentObject.VolumeInfinite) { return; } SelectedEquipmentObject.SetReload(true); UIManager.Instance.SetReload(); StartCoroutine(WaitForReload()); }