public void Remove(int count) { _fishCount -= count; RefreshShipHoldView(); _view.DoReduceAnim(true); }
void RemoveCrew() { current.Release(); _current = null; _view.Refresh(this); _view.DoReduceAnim(false); CrewShipManager.instance.RemoveCrew(); }
public void SetCurrent(Crew crew, int index, bool doAnim) { _current = crew; if (current != null) { current.transform.SetParent(transform, false); } _view = UILayoutInventory.instance.GetCrewViewUI(index); _view.Refresh(this); if (doAnim) { if (current != null) { _view.DoGrowAnim(true); } else { _view.DoReduceAnim(false); } } }