コード例 #1
0
        public void Update()
        {
            //}
            for (int i = 0; i < effectUIWidgets.Count; i++)
            {
                effectUIWidgets[i].Update();
            }

            if (colorPickWindow != null)
            {
                colorPickWindow.Update();
            }
            if (texturePickWindow != null)
            {
                texturePickWindow.Update();
            }

            if (smokeEditWindow != null)
            {
                smokeEditWindow.Update();
            }

            if (selectedTemplate != null)
            {
                if (modelOffset != selectedTemplate.position || modelRotation != selectedTemplate.rotation || modelScale != selectedTemplate.scale)
                {
                    selectedTemplate.position = modelOffset;
                    selectedTemplate.rotation = modelRotation;
                    selectedTemplate.scale    = modelScale;
                }
            }
        }
コード例 #2
0
        public void Update()
        {
            for (int i = 0; i < effectsModules.Count; i++)
            {
                for (int j = 0; j < effectsModules[i].Controllers.Count; j++)
                {
                    effectsModules[i].SetControllerOverride(effectsModules[i].Controllers[j].name, useControllers);
                    if (effectsModules[i].Controllers[j].linkedTo == "throttle")
                    {
                        effectsModules[i].SetControllerOverrideValue(effectsModules[i].Controllers[j].name, throttleControllerValue);
                    }
                    if (effectsModules[i].Controllers[j].linkedTo == "atmosphere_density")
                    {
                        effectsModules[i].SetControllerOverrideValue(effectsModules[i].Controllers[j].name, densityControllerValue);
                    }
                    if (effectsModules[i].Controllers[j].linkedTo == "rcs")
                    {
                        effectsModules[i].SetControllerOverrideValue(effectsModules[i].Controllers[j].name, rcsControllerValue);
                    }
                    if (effectsModules[i].Controllers[j].linkedTo == "random")
                    {
                        effectsModules[i].SetControllerOverrideValue(effectsModules[i].Controllers[j].name, randomControllerValue.x);
                    }
                }
            }
            for (int i = 0; i < effectUIWidgets.Count; i++)
            {
                effectUIWidgets[i].Update();
            }

            if (colorPickWindow != null)
            {
                colorPickWindow.Update();
            }
            if (texturePickWindow != null)
            {
                texturePickWindow.Update();
            }

            if (smokeEditWindow != null)
            {
                smokeEditWindow.Update();
            }
        }