Beispiel #1
0
        override public float Run()
        {
            if (runtimeLinkedConversation)
            {
                bool setOption = false;
                if (switchType == SwitchType.On || switchType == SwitchType.OnForever)
                {
                    setOption = true;
                }

                bool clampOption = false;
                if (switchType == SwitchType.OffForever || switchType == SwitchType.OnForever)
                {
                    clampOption = true;
                }

                runtimeLinkedConversation.SetOptionState(optionNumber + 1, setOption, clampOption);
            }

            return(0f);
        }