12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using LitJson;
- using UnityEngine;
- using UnityEngine.EventSystems;
- using System.Xml;
- using System.Collections;
- using System.Collections.Generic;
- 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<ManaGarden>();
- gameObject.AddScript<ManaData>();
- gameObject.AddScript<ManaPlayer>();
- gameObject.AddScript<ManaDebug>();
- 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();
- }
- }
- }
|