Example #1
0
    void Start()
    {
        if (PlayerPrefs.HasKey("Bernstein") || PlayerPrefs.HasKey("DeCastleju") ||
            PlayerPrefs.HasKey("NewtonForm") || PlayerPrefs.HasKey("SplineInterpolation"))
        {
            _curve = GameObject.Find("Canvas").GetComponent <CurveHandler_2D>();
        }

        if (PlayerPrefs.HasKey("SplineInterpolation3D"))
        {
            curve = GameObject.Find("Canvas").GetComponent <CurveHandler>();
        }
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     _curveHandler = GameObject.Find("Canvas").GetComponent <CurveHandler_2D>();
     ControlPoints = _curveHandler.ControlPoints;
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     _curveHandler = GameObject.Find("Canvas").GetComponent <CurveHandler_2D>();
     ControlPoints = _curveHandler.ControlPoints;
     solver        = GameObject.Find("GaussianSolver").GetComponent <GaussianElliminationSolver>();
 }