Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [CreateAssetMenu()]
- public class Character : UnityEngine.ScriptableObject
- {
- // Personal Attributes
- //**Name
- public string firstName;
- public string middleName;
- public string lastName;
- public string fullName;
- public void Initialize()
- {
- fullName = string.IsNullOrEmpty(middleName)
- ? $"{firstName} {lastName}"
- : $"{firstName} {middleName} {lastName}";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement