コード例 #1
0
ファイル: Resources.cs プロジェクト: nextgenhacker/GL.Servers
        /// <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();
        }
コード例 #2
0
    private void Start()
    {
        gameDatas.Initialize();

        DontDestroyOnLoad(gameObject);

        animator = GameObject.FindGameObjectWithTag("FadePanel").GetComponent <Animator>();

        SceneManager.activeSceneChanged += PickAnimator;
    }