Exemple #1
0
 void LateUpdate()
 {
     if (IsInBelt())
     {
         FlashlightCommon.OrientFlashlight(transform, _headset);
     }
 }
Exemple #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);
     }
 }