123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using System;
- using LitJson;
- using UnityEngine;
- using UnityEngine.EventSystems;
- using System.Xml;
- using System.Collections;
- using System.Collections.Generic;
- using System.IO;
- using System.Text;
- public class Initializer : MonoBehaviour
- {
- #region
- public static List<Regist> RegistList;
- #endregion
- private void Start()
- {
- RegistList = new List<Regist>();
- gameObject.AddScript<ManaReso>();
- gameObject.AddScript<ManaAnim>();
- gameObject.AddScript<ManaAudio>();
- gameObject.AddScript<ManaUI>();
- gameObject.AddScript<ManaData>();
- gameObject.AddScript<ManaGarden>();
- gameObject.AddScript<ManaDebug>();
- gameObject.AddScript<ManaPlayer>();
- gameObject.AddScript<ManaMiniGame>();
- for (int i = 0; i < RegistList.Count; i++)
- {
- RegistList[i].RegistReference();
- }
- for (int i = 0; i < RegistList.Count; i++)
- {
- RegistList[i].RegistValueA();
- }
- for (int i = 0; i < RegistList.Count; i++)
- {
- RegistList[i].RegistValueB();
- }
- for (int i = 0; i < RegistList.Count; i++)
- {
- RegistList[i].RegistValueC();
- }
- }
- }
|