Ejemplo n.º 1
0
 /// <summary>
 /// Clear the mandible.
 /// </summary>
 /// <param name="mandibleInstance">The mandible instance calling the clear function.</param>
 internal static void clearMandible(Mandible mandibleInstance)
 {
     if (mandible == mandibleInstance)
     {
         mandible = null;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set the mandible. Only one can be created per scene. If more than one exists an exception will be thrown.
 /// </summary>
 /// <param name="mandibleInstance">The mandible instance to use.</param>
 internal static void setMandible(Mandible mandibleInstance)
 {
     if (mandible == null)
     {
         mandible         = mandibleInstance;
         StartTranslation = mandible.Owner.Translation;
         StartRotation    = mandible.Owner.Rotation;
     }
     else
     {
         throw new Exception("Only one mandible can exist per scene.");
     }
 }