BaseView.cs 852 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. [HideInInspector]
  20. public BaseList baselist;
  21. // Start is called before the first frame update
  22. void Start()
  23. {
  24. }
  25. // Update is called once per frame
  26. void Update()
  27. {
  28. }
  29. public virtual void init(int i, BaseConfig c,int vi)
  30. {
  31. // text.text = i.ToString();
  32. this.Index = i;
  33. this.config = c;
  34. this.viewIndex = vi;
  35. }
  36. }