BodySelectMgr.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using UnityEngine;
  3. public class BodySelectMgr : BaseMgr<BodySelectMgr>
  4. {
  5. private void Start()
  6. {
  7. UIRoot componentInParent = base.GetComponentInParent<UIRoot>();
  8. this.m_goBodySelectPanel = componentInParent.transform.Find("BodySelectPanel").gameObject;
  9. if (this.m_goBodySelectPanel == null)
  10. {
  11. Debug.LogError(string.Format("{0}が見つかりませんでした", "BodySelectPanel"));
  12. return;
  13. }
  14. this.m_goBodySelectPanel.SetActive(false);
  15. this.m_bodySelectCtrl = this.m_goBodySelectPanel.GetComponent<BodySelectCtrl>();
  16. this.m_sceneEdit = GameObject.Find("__SceneEdit__").GetComponent<SceneEdit>();
  17. }
  18. public void OpenBodySelectPanel()
  19. {
  20. this.m_goBodySelectPanel.SetActive(true);
  21. this.m_bodySelectCtrl.NewBodyButtonEnabled(this.m_sceneEdit.maid.HasCrcBody);
  22. }
  23. public void CloseBodySelectPanel()
  24. {
  25. this.m_goBodySelectPanel.SetActive(false);
  26. }
  27. private void Update()
  28. {
  29. }
  30. private GameObject m_goBodySelectPanel;
  31. private BodySelectCtrl m_bodySelectCtrl;
  32. private SceneEdit m_sceneEdit;
  33. }