Пример #1
0
        public void Initialize(MonoBehaviour parent, GameObject contentPane, GameObject btnPrefab, String rootPath, Action action)
        {
            this.action      = action;
            this.parent      = parent;
            this.contentPane = contentPane;
            this.prefab      = btnPrefab;
            rootDir          = Path.GetFullPath(UserData.Path + rootPath);
            width            = contentPane.GetComponent <RectTransform>().rect.width;

            Callback(rootDir);

            CvsC_ClothesSave controller = this.transform.GetComponent <CvsC_ClothesSave>();

            if (controller != null)
            {
                this.clothesSave = controller;
                Logger.Log("CharaSelect :: In save controller, adding button!");
                StartCoroutine(nameof(CreateSaveButton));
            }
        }
Пример #2
0
 internal static void InitHookSave(CvsC_ClothesSave __instance)
 {
     _charaSave        = __instance;
     _charaSaveVisible = __instance.GetComponentsInParent <CanvasGroup>(true);
 }