Esempio n. 1
0
        public void AddRecordToKillFeedBoard(KillRecord killRecord, RecordPanel[] recordBoard)
        {
            if (recordBoard.Length >= dictOfKillRecords.Count)
            {
                recordBoard[dictOfKillRecords.Count - 1].gameObject.SetActive(true);
            }
            int i = recordBoard.Length - 1;

            while (i > 0)
            {
                recordBoard[i].SetPanelInfo(recordBoard[i - 1].GetPanelInfo());
                i--;
            }
            recordBoard[0].SetPanelInfo(killRecord);
        }
Esempio n. 2
0
 public void SetPanelInfo(KillRecord _killRecord)
 {
     killer.text         = _killRecord.killer;
     killed.text         = _killRecord.killed;
     weaponSprite.sprite = _killRecord.weaponSprite;
 }
Esempio n. 3
0
 public void AddKillToDict(KillRecord killRecord)
 {
     dictOfKillRecords.Add(dictOfKillRecords.Count, killRecord);
     AddRecordToKillFeedBoard(killRecord, recordPanels);
 }