public void SetItem(ITargetable targetable) { if (index > humanInventoryImages.Count) { return; } if (humanInventoryImages[index].IsActive()) { index += 1; } if (index > humanInventoryImages.Count) { return; } if (index < humanInventoryImages.Count) { humanInventoryImages[index].gameObject.SetActive(true); //humanInventoryImages[index] = targetable.GetTargetImage(); currentHumanTypes.Add(targetable.GetHumanType()); } if (currentHumanTypes.Count == 3) { EventManager <List <HumanType> > .BroadCast(EVENT.checkPointEvent, currentHumanTypes); } }