Exemplo n.º 1
0
 void Awake()
 {
     s_Instance = this;
     controller = GetComponent <CharacterController>();
     cam        = camMount.GetComponentInChildren <Camera>();
     anim       = GetComponentInChildren <Animator>();
     shot       = GetComponent <UbhShotCtrl>();
     mouseLook.Init(transform, camMount.transform);
     layermask = 1 << 8;
     layermask = ~layermask;
     ResetDash();
 }
Exemplo n.º 2
0
 private void Awake()
 {
     Look.Init(transform, cam);
     input = GetComponent <SimplePlayerInput>();
 }