Ejemplo n.º 1
0
        public void Init(StatesManager st)
        {
            states = st;
            anim   = states.anim;

            shoulder                  = anim.GetBoneTransform(HumanBodyBones.RightShoulder).transform;
            aimPivot                  = new GameObject().transform;
            aimPivot.name             = "aim pivot";
            aimPivot.transform.parent = states.transform;

            rh_target                 = new GameObject().transform;
            rh_target.name            = "right hand target";
            rh_target.parent          = aimPivot;
            states.inp.aimPosition    = states.transform.position + transform.forward * 15;
            states.inp.aimPosition.y += 1.4f;
        }
Ejemplo n.º 2
0
 public void Init(InputHandler inp)
 {
     mTransform = transform;
     states     = inp.states;
     target     = states.mTransform;
 }