Example #1
0
        public static bool Startup(UnityEngine.MonoBehaviour Instance)
        {
            LLogger.LInfo($"{nameof(EventManager)} Startup");
            if (!EventManager.Startup())
            {
                LLogger.LError($"{nameof(EventManager)} Startup Failed");
                return(false);
            }

            LLogger.LInfo($"{nameof(ObjectPoolManager)} Startup");
            if (!ObjectPoolManager.Startup())
            {
                LLogger.LError($"{nameof(ObjectPoolManager)} Startup Failed");
                return(false);
            }

            LLogger.LInfo($"{nameof(GroupManager)} Startup");
            if (!GroupManager.Startup())
            {
                LLogger.LError($"{nameof(GroupManager)} Startup Failed");
                return(false);
            }

            LLogger.LInfo($"{nameof(TaskManager)} Startup");
            if (!TaskManager.Startup(Instance))
            {
                LLogger.LError($"{nameof(TaskManager)} Startup Failed");
                return(false);
            }

            LLogger.LInfo($"{nameof(TimerManager)} Startup");
            if (!TimerManager.Startup())
            {
                LLogger.LError($"{nameof(TimerManager)} Startup Failed");
                return(false);
            }

            LLogger.LInfo($"{nameof(MotionManager)} Startup");
            if (!MotionManager.Startup())
            {
                LLogger.LError($"{nameof(MotionManager)} Startup Failed");
                return(false);
            }

            LLogger.LInfo($"{nameof(NetManager)} Startup");
            if (!NetManager.Startup())
            {
                LLogger.LError($"{nameof(NetManager)} Startup Failed");
                return(false);
            }

            return(true);
        }