DrawSideArc() private static method

private static DrawSideArc ( PlatformEffector2D effector ) : void
effector UnityEngine.PlatformEffector2D
return void
Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
        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);
        }