GetObjectSystem.cs 649 B

12345678910111213141516171819202122232425
  1. using Blue;
  2. using UnityEngine;
  3. public class GetObjectSystem : SingletonMonobehaviour<GetObjectSystem>
  4. {
  5. [SerializeField] private GameObject mesh_test;
  6. [SerializeField] private GameObject ARSpaceForAll;
  7. private void Awake()
  8. {
  9. GetObj();
  10. PushIOC();
  11. }
  12. private void GetObj()
  13. {
  14. mesh_test = GameObject.Find("ARSpaceForAll/mesh_test");
  15. ARSpaceForAll = GameObject.Find("ARSpaceForAll");
  16. }
  17. private void PushIOC()
  18. {
  19. SceneIOCContainer.Instance.Push("mesh_test",mesh_test);
  20. SceneIOCContainer.Instance.Push("ARSpaceForAll",ARSpaceForAll);
  21. }
  22. }