NPCEditStatus.cs 672 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using UnityEngine;
  3. namespace SceneNPCEdit
  4. {
  5. public class NPCEditStatus : MonoBehaviour
  6. {
  7. public void Apply(NPCEditPlate plate, string additionalInformationText)
  8. {
  9. this.labelLastName.text = plate.lastName;
  10. this.labelFirstName.text = plate.firstName;
  11. this.thumSprite.mainTexture = plate.thumbnail;
  12. this.thumSprite.SetDimensions(61, 88);
  13. this.additionalInformationText.text = additionalInformationText;
  14. }
  15. [SerializeField]
  16. private UILabel labelLastName;
  17. [SerializeField]
  18. private UILabel labelFirstName;
  19. [SerializeField]
  20. private UILabel additionalInformationText;
  21. [SerializeField]
  22. private UITexture thumSprite;
  23. }
  24. }