Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. [CreateAssetMenu()]
  2. public class Character : UnityEngine.ScriptableObject
  3. {
  4. // Personal Attributes
  5. //**Name
  6. public string firstName;
  7. public string middleName;
  8. public string lastName;
  9. public string fullName;
  10.  
  11. public void Initialize()
  12. {
  13. fullName = string.IsNullOrEmpty(middleName)
  14. ? $"{firstName} {lastName}"
  15. : $"{firstName} {middleName} {lastName}";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement