void initNPCController(GameObject person, int startingPosition) { NpcController npc = person.GetComponent <NpcController>(); npc.setId(spawnedNPCs); npc.customerInfo = availableCustomers[Random.Range(0, availableCustomers.Count)]; npc.setDirection(startingPosition < 0 ? NpcController.Direction.RIGHT : NpcController.Direction.LEFT); updateSpawnedList(npc.customerInfo); }