public void OnSceneGUI() { PlatformEffector2D platformEffector2D = (PlatformEffector2D)base.target; if (platformEffector2D.enabled) { if (platformEffector2D.useOneWay) { PlatformEffector2DEditor.DrawSurfaceArc(platformEffector2D); } if (!platformEffector2D.useSideBounce || !platformEffector2D.useSideFriction) { PlatformEffector2DEditor.DrawSideArc(platformEffector2D); } } }
public void OnSceneGUI() { PlatformEffector2D target = (PlatformEffector2D)this.target; if (!target.enabled) { return; } if (target.useOneWay) { PlatformEffector2DEditor.DrawSurfaceArc(target); } if (target.useSideBounce && target.useSideFriction) { return; } PlatformEffector2DEditor.DrawSideArc(target); }