Ejemplo n.º 1
0
    void Start()
    {
        bezierScript        = GetComponent <BezierCurve>();
        ltMat               = GetComponent <LightEaterMaterial>();
        anim                = GetComponent <Animator>();
        startPoint.position = transform.position;
//
//        if(homePoint){
//            transform.position = homePoint.position - (Vector3.up * 2.0f);
//            startPoint.position = homePoint.position;
//        }
    }
Ejemplo n.º 2
0
 void Start()
 {
     anim        = GetComponent <Animator>();
     ikScript    = GetComponentInChildren <CCDIK>();
     leMatScript = GetComponent <LightEaterMaterial>();
 }