コード例 #1
0
 public override void Draw()
 {
     base.Draw((!this.front) ? this.def.altitudeLayer.AltitudeFor() : (this.def.altitudeLayer.AltitudeFor() + 0.1f * GenMath.InverseLerp(0f, this.treeHeight, this.currentSpatialPosition.y) * 2f));
 }
コード例 #2
0
 public override void Draw()
 {
     Draw((!front) ? def.altitudeLayer.AltitudeFor() : (def.altitudeLayer.AltitudeFor() + 0.1f * GenMath.InverseLerp(0f, treeHeight, currentSpatialPosition.y) * 2f));
 }