示例#1
0
        public static MovementGroup CreateGroup(Command com)
        {
            MovementGroup moveGroup = pooledGroups.Count > 0 ? pooledGroups.Pop() : new MovementGroup();

            moveGroup.indexID = activeGroups.Add(moveGroup);
            LastCreatedGroup  = moveGroup;
            moveGroup.Initialize(com);
            return(moveGroup);
        }
        public static void Initialize()
        {
            Time.fixedDeltaTime = FixedMath.ToFloat(Timestep);
            FrameCount          = 0;
            LSUtility.Initialize(1);
            CoroutineManager.Initialize();

            NetworkManager.Initialize();
            FrameManager.Initialize();
            AgentController.Initialize(Instance.AgentObjects);
            PhysicsManager.Initialize();
            InputManager.Initialize();
            PlayerManager.Initialize();

            MovementGroup.Initialize();

            Initialized = true;
        }