public AttackersDataClass Constructor() { AttackersDataClass capture = new AttackersDataClass(); capture._Name = _Name; capture._Obj = _Obj; capture._time = _time; return(capture); }
//ADD THE CURRENT ATTACKER NAME TO THE LIST attackersList void AddCaptureAttackers(string attackerTag, GameObject originatorObj, float time) { for (int i = 0; i < attackersList.Count; i++) // Loop with for. { if (attackersList[i]._Name == attackerTag) { RemoveCaptureAttackers(i); } } AttackersDataClass capture = new AttackersDataClass(); capture._Name = attackerTag; capture._Obj = originatorObj; capture._time = time; attackersList.Add(capture); }