示例#1
0
        public void SetColors(float cyclePeriod, Color minColor, Color maxColor)
        {
            var fx = new ColorCycleBehavior(cyclePeriod);

            fx.minColor = minColor;
            fx.maxColor = maxColor;
            Add(fx);
            ColorFx = fx;
        }
示例#2
0
        public void SetColors(float cyclePeriod, Color minColor, Color maxColor)
        {
            ColorCycleBehavior cycl = new ColorCycleBehavior(cyclePeriod);

            cycl.minColor = minColor;
            cycl.maxColor = maxColor;
            //cycl.timePeriodR = cyclePeriod * RandomMath.RandomBetween(1.02f, 1.537f); ;
            //cycl.timePeriodG = cyclePeriod * RandomMath.RandomBetween(0.7f, 0.93f); ;
            Add(cycl);
        }