示例#1
0
    private void ChannelInterference()
    {
        if (this.objective == OBJECTIVES.MIN)
        {
            if (this.interference > this.interference_MIN)
            {
                this.interference -= this.velocity;
            }

            else
            {
                this.objective = OBJECTIVES.MAX;
            }
        }

        else
        {
            if (this.interference < this.interference_MAX)
            {
                this.interference += this.velocity;
            }

            else
            {
                this.objective = OBJECTIVES.MIN;
                this.ChooseChannel();
            }
        }
    }
示例#2
0
    public FXMulticolor(GameObject target, float velocity)
    {
        this.Target = target;

        this.objective = OBJECTIVES.MIN;

        this.velocity = velocity;

        this.ChooseChannel ();
    }
示例#3
0
    public FXMulticolor(GameObject target, float velocity)
    {
        this.Target = target;

        this.objective = OBJECTIVES.MIN;

        this.velocity = velocity;

        this.ChooseChannel();
    }
示例#4
0
    private void ChannelInterference()
    {
        if (this.objective == OBJECTIVES.MIN)
        {
            if (this.interference > this.interference_MIN)
                this.interference -= this.velocity;

            else
                this.objective = OBJECTIVES.MAX;
        }

        else
        {
            if (this.interference < this.interference_MAX)
                this.interference += this.velocity;

            else
            {
                this.objective = OBJECTIVES.MIN;
                this.ChooseChannel();
            }
        }
    }