示例#1
0
        void Awake()
        {
            _transform = transform;
            _slider    = GetComponent <SliderJoint2D>();

            _arm_joint  = GetComponent <GymanJoint>();
            _hand_joint = HandU.GetComponent <GymanJoint>();
            _grab       = HandU.GetComponent <als_grab>();

            _lfinger = FingerL.GetComponent <HingeJoint2D>();
            _rfinger = FingerR.GetComponent <HingeJoint2D>();

            _update_action = new UnityEngine.Events.UnityAction[] {
                update__wait_stretch,
                update__wait_fold
            };
        }
示例#2
0
 // Use this for initialization
 void Start()
 {
     _parent = GetComponentInParent <als_grab>();
 }