Beispiel #1
0
        public static void Setup()
        {
            LSDatabaseManager.Setup();

            UnityInstance = GameObject.CreatePrimitive(PrimitiveType.Sphere).AddComponent <MonoBehaviour> ();
            UnityInstance.GetComponent <Renderer>().enabled = false;
            GameObject.DontDestroyOnLoad(UnityInstance.gameObject);

            AbilityInterfacer.Setup();

            AgentController.Setup();
            TeamManager.Setup();

            ProjectileManager.Setup();
            EffectManager.Setup();
            BehaviourHelper.GlobalSetup();
            PhysicsManager.Setup();
            ClientManager.Setup(MainGameManager.MainNetworkHelper);
            InterfaceManager.Setup();

            Application.targetFrameRate = 30;
            Time.fixedDeltaTime         = BaseDeltaTime;
            Time.maximumDeltaTime       = Time.fixedDeltaTime * 2;

            InputManager.Setup();

            foreach (LSManager manager in Managers)
            {
                manager.Setup();
            }
        }
Beispiel #2
0
        public static void Initialize(SelectionSetting selSetting = SelectionSetting.PC_RTS)
        {
            AgentControllers.FastClear();
            selectionSetting = selSetting;

            OrderMarker = GameObject.Instantiate(instance._orderMarker).GetComponent <Marker> ();

            InterfaceManager.Initialize();
        }
Beispiel #3
0
        public static void Visualize()
        {
            switch (selectionSetting)
            {
            case SelectionSetting.PC_RTS:
                SelectionManager.Update();
                CommandCard.Visualize();
                InterfaceManager.Visualize();
                break;

            case SelectionSetting.Mobile:

                break;
            }
        }