public void InitMemberByInstance(Wiggle wiggle) { mode = wiggle.mode; timer = wiggle.timer; speed = wiggle.speed; frequency = wiggle.frequency; amplitude = wiggle.amplitude; automaticTimer = wiggle.automaticTimer; }
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; }