Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        // Define the Green Interval
        GreenInterval = new MyIntervalBoundInY();
        GreenInterval.IntervalColor  = GreenColor;
        GreenInterval.PositionToDraw = new Vector3(0.6f, 0, 0);  // Slightly offset from the axis

        // Define the Blue Interval
        BlueInterval = new MyIntervalBoundInY();
        BlueInterval.IntervalColor  = BlueColor;
        BlueInterval.PositionToDraw = new Vector3(-0.6f, 0, 0);  // Slightly offset from the axis

        // The overlap interval
        OverlapInterval = new MyIntervalBoundInY();
        OverlapInterval.DrawInterval   = false;                   // Initially hide
        OverlapInterval.PositionToDraw = new Vector3(0.0f, 0, 0); // One the axis
        OverlapInterval.IntervalColor  = OverlapColor;
    }
Пример #2
0
    public GameObject TestPosition = null;   // Use sphere to represent a position

    // Start is called before the first frame update
    void Start()
    {
        AnInterval = new MyIntervalBoundInY();
    }