Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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;
 }