Beispiel #1
0
 /// <summary>
 /// Returns true if a given angle is pointing towards the front of the cover.
 /// </summary>
 /// <param name="angle">Degrees in world space.</param>
 public bool IsFront(float angle, TriggerAngles angles, bool state)
 {
     if (state)
     {
         return(IsFront(angle, angles.Exit));
     }
     else
     {
         return(IsFront(angle, angles.Enter));
     }
 }
Beispiel #2
0
 /// <summary>
 /// Returns true if a given angle is pointing right of the cover.
 /// </summary>
 public bool IsRight(float angle, TriggerAngles angles, bool state)
 {
     return(IsRight(angle, state ? angles.Exit : angles.Enter));
 }