예제 #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();
            }
        }
    }