So this is my two different scripts:
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Population : MonoBehaviour
{
public List<Person> personList;
}
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class Person
{
public enum PersonGender
{
Male,
Female,
}
public PersonGender personGender;
public int age;
public int money;
public bool gotLover;
public bool pregnant;
public bool adult;
}
So I want to make a function so that anytime a Male and Female can set the bool gotLover to True in the list on population. Any ideas?