示例#1
0
 public void InitMemberByInstance(Wiggle wiggle)
 {
     mode           = wiggle.mode;
     timer          = wiggle.timer;
     speed          = wiggle.speed;
     frequency      = wiggle.frequency;
     amplitude      = wiggle.amplitude;
     automaticTimer = wiggle.automaticTimer;
 }
示例#2
0
        public WiggleDef()
        {
            if (wiggleEffect == null)
            {
                wiggleEffect = Util.GetComponentVar <Wiggle, WiggleDef>(wiggleEffect);
            }

            mode           = Wiggle.Algorithm.Complex;
            timer          = 0f;
            speed          = 1f;
            frequency      = 12f;
            amplitude      = 0.01f;
            automaticTimer = true;
        }