Esempio n. 1
0
 void Start( )
 {
     anim = GetComponent <Anim> ( );
     anim.AddAnim(1, 1, "two");
     anim.AddAnim(2, 1, "one");
     anim.AddAnim(3, 1, "grab");
     anim.AddAnim(4, 1, "cangrab");
     body  = GetComponent <Rigidbody2D> ( );
     joint = GetComponent <HingeJoint2D> ( );
 }