상속: Effector2DEditor
예제 #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);
                }
            }
        }
예제 #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);
        }