Exemplo n.º 1
0
 void LateUpdate()
 {
     if (IsInBelt())
     {
         FlashlightCommon.OrientFlashlight(transform, _headset);
     }
 }
Exemplo n.º 2
0
 void LateUpdate()
 {
     if (IsHeadAttached)
     {
         transform.position = Camera.main.transform.position + Camera.main.transform.rotation * Vector3.up * 0.3f;
         FlashlightCommon.OrientFlashlight(transform, Camera.main.transform);
     }
 }