public void InitNetFields() { NetFields.AddFields(position, flying, height, color, alpha, itemIndex); position.Interpolated(interpolate: true, wait: true); height.Interpolated(interpolate: true, wait: true); alpha.Interpolated(interpolate: true, wait: true); }
protected override void initNetFields() { base.initNetFields(); base.NetFields.AddFields(projectileIntroTimer, projectileOutroTimer, lastRotation, nearFarmer); lastRotation.Interpolated(interpolate: false, wait: false); projectileIntroTimer.Interpolated(interpolate: false, wait: false); projectileOutroTimer.Interpolated(interpolate: false, wait: false); }
protected override void initNetFields() { base.initNetFields(); base.NetFields.AddFields(leapDuration, leapProgress, leapStartPosition, leapEndPosition, leaping); leapProgress.Interpolated(interpolate: true, wait: true); leaping.Interpolated(interpolate: true, wait: true); leaping.fieldChangeVisibleEvent += OnLeapingChanged; }