Exemple #1
0
        override public float Run()
        {
            bool setOption   = false;
            bool clampOption = false;

            if (switchType == SwitchType.On || switchType == SwitchType.OnForever)
            {
                setOption = true;
            }

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

            if (linkedConversation)
            {
                linkedConversation.SetOption(optionNumber + 1, setOption, clampOption);
            }

            return(0f);
        }