private void Start() { ReadData(); GenerateName(); NameData nameData = ScriptableObject.CreateInstance <NameData>(); nameData.Init(maleNames, femaleNames, sureNames); AssetDatabase.CreateAsset(nameData, "Assets/nameData.asset"); }
private void Start() { ReadData(); GenerateName(); NameData nameData = ScriptableObject.CreateInstance <NameData>(); nameData.Init(maleNames, femaleNames, sureNames); AssetDatabase.CreateAsset(nameData, "Assets/nameData.asset"); }