/// <summary> /// Initializes a new instance of the <see cref="Resources"/> class. /// </summary> internal static void Initialize() { Resources.Logger = LogManager.GetCurrentClassLogger(typeof(Resources)); Factory.Initialize(); CSV.Initialize(); Home.Initialize(); Fingerprint.Initialize(); GameDatas.Initialize(); Resources.Gametools = new GameTools(); Resources.Redis = new Redis(); Resources.Players = new Players(); Resources.Clans = new Clans(); Resources.Battles = new Battles(); Resources.Random = new XorShift(); Resources.TCPGateway = new TCPServer(); Resources.UDPGateway = new UDPServer(); Resources.Started = true; Parser.Initialize(); EventsHandler.Initialize(); }
private void Start() { gameDatas.Initialize(); DontDestroyOnLoad(gameObject); animator = GameObject.FindGameObjectWithTag("FadePanel").GetComponent <Animator>(); SceneManager.activeSceneChanged += PickAnimator; }