Esempio n. 1
0
        void SetCurveReference()
        {
            GameObject chPrefab = Resources.Load("CurvesHolder") as GameObject;
            GameObject chGO     = Instantiate(chPrefab) as GameObject;

            _curvesHolder = chGO.GetComponent <CurvesHolder>();

            _directCurveHorizontal = _curvesHolder.ReturnCurve(CurveType.horizontal);
            _directCurveVertical   = _curvesHolder.ReturnCurve(CurveType.vertical);
            _dismountCurve         = _curvesHolder.ReturnCurve(CurveType.dismount);
            _mountCurve            = _curvesHolder.ReturnCurve(CurveType.mount);
        }
Esempio n. 2
0
        void SetCurveReferences()
        {
            GameObject curvesHolderPF = Resources.Load("CurvesHolder") as GameObject;
            GameObject curvesHoldeGO  = Instantiate(curvesHolderPF) as GameObject;

            curvesHolder = curvesHoldeGO.GetComponent <CurvesHolder>();

            leapCurveHorizontal = curvesHolder.ReturnCurve(CurveType.horizontal);
            leapCurveVertical   = curvesHolder.ReturnCurve(CurveType.vertical);
            dismountCurve       = curvesHolder.ReturnCurve(CurveType.dismount);
            mountCurve          = curvesHolder.ReturnCurve(CurveType.mount);
        }