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(); } } }
public FXMulticolor(GameObject target, float velocity) { this.Target = target; this.objective = OBJECTIVES.MIN; this.velocity = velocity; this.ChooseChannel (); }
public FXMulticolor(GameObject target, float velocity) { this.Target = target; this.objective = OBJECTIVES.MIN; this.velocity = velocity; this.ChooseChannel(); }
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(); } } }