Пример #1
0
    // Use this for initialization
    void Start()
    {
        Shoot.EventDidPrepareNewTurn += OnPreparedNextTurn;
        Shoot.EventShoot             += OnShoot;
        _animatorGK = GoalKeeper.share.GetComponent <Animator>();
        _transGK    = GoalKeeper.share.GetComponent <Transform>();

        armLeft  = GoalKeeper.share.armLeft;
        armRight = GoalKeeper.share.armRight;
    }
Пример #2
0
    void ApplyBoneRecordedData(ArmSystem solver, BoneData boneData)
    {
        //solver.bone1.transform.localPosition = boneData.bone1.pos;
        solver.bone1.transform.localRotation = boneData.bone1.rot;

        //solver.bone2.transform.localPosition = boneData.bone2.pos;
        solver.bone2.transform.localRotation = boneData.bone2.rot;

        //solver.bone3.transform.localPosition = boneData.bone3.pos;
        solver.bone3.transform.localRotation = boneData.bone3.rot;
    }