void MakeKillRecordOnEventBoard(KillList record, PanelManager[] eventBoard) { if (killJournal.Count <= eventBoard.Length) { eventBoard[killJournal.Count - 1].gameObject.SetActive(true); } int i = eventBoard.Length - 1; while (i > 0) { eventBoard[i].FillPanelWithInfo(eventBoard[i - 1].GetPanelInfo()); i--; } eventBoard[0].FillPanelWithInfo(record); }
public void FillPanelWithInfo(KillList record) { killer.text = record.Killer; weaponIcon.sprite = record.Weapon; victum.text = record.Victum; }
public void AddKill(KillList record) { killJournal.Add(killJournal.Count, record); MakeKillRecordOnEventBoard(record, fields); }