BaseView.cs 800 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.EventSystems;
  5. using UnityEngine.UI;
  6. public class BaseView : MonoBehaviour
  7. {
  8. public TextMesh text;
  9. [HideInInspector]
  10. public bool isShow;
  11. [HideInInspector]
  12. public int sx;
  13. [HideInInspector]
  14. public int Index = -1;
  15. [HideInInspector]
  16. public int viewIndex = -1;
  17. [HideInInspector]
  18. public BaseConfig config;
  19. // Start is called before the first frame update
  20. void Start()
  21. {
  22. }
  23. // Update is called once per frame
  24. void Update()
  25. {
  26. }
  27. public virtual void init(int i, BaseConfig c,int vi)
  28. {
  29. // text.text = i.ToString();
  30. this.Index = i;
  31. this.config = c;
  32. this.viewIndex = vi;
  33. }
  34. }