PlayerDummyController.cs 515 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using UnityEngine;
  3. public class PlayerDummyController : MonoBehaviour
  4. {
  5. public UISpriteAnimation anime
  6. {
  7. get
  8. {
  9. if (this._anime == null)
  10. {
  11. this._anime = base.GetComponent<UISpriteAnimation>();
  12. }
  13. return this._anime;
  14. }
  15. }
  16. public UISprite sprite
  17. {
  18. get
  19. {
  20. if (this._sprite == null)
  21. {
  22. this._sprite = base.GetComponent<UISprite>();
  23. }
  24. return this._sprite;
  25. }
  26. }
  27. private UISpriteAnimation _anime;
  28. private UISprite _sprite;
  29. }