This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <configuration> | |
| <appSettings> | |
| <add key="wcf:useBestMatchNamedPipeUri" value="true" /> | |
| </appSettings> | |
| </configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <runtime> | |
| <AppContextSwitchOverrides value="Switch.System.Runtime.Serialization.DoNotUseTimeZoneInfo=false" /> | |
| </runtime> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <configuration> | |
| <startup> | |
| <supportedRuntime version=".NETFramework,Version=v4.6.2"/> | |
| </startup> | |
| </configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <configuration> | |
| <startup> | |
| <supportedRuntime version=".NETFramework,Version=v4.5.2"/> | |
| </startup> | |
| <runtime> | |
| <AppContextSwitchOverrides value="Switch.System.ServiceModel.DisableCngCertificates=false" /> | |
| </runtime> | |
| </configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private const string DisableCngCertificates = @"Switch.System.ServiceModel.DisableCngCertificates"; | |
| AppContext.SetSwitch(DisableCngCertificates, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public async Task InvokeCallbackWithDelay(int delay) | |
| { | |
| int threadId1 = Thread.CurrentThread.ManagedThreadId; | |
| OperationContext.Current.GetCallbackChannel<IServiceCallback>().TheCallback("One"); | |
| await Task.Delay(delay); | |
| int threadId2 = Thread.CurrentThread.ManagedThreadId; | |
| OperationContext.Current.GetCallbackChannel<IServiceCallback>().TheCallback("Two"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <GroupDescriptions> | |
| <PropertyGroupDescription | |
| PropertyName=”Age” | |
| CustomSort= | |
| ”{x:Static PropertyGroupDescription.CompareNamesAscending}”/> | |
| </PropertyGroupDescription> | |
| </GroupDescriptions> | |
| <SortDescriptions> | |
| <SortDescription PropertyName=”LastName”/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <GroupDescriptions> | |
| <PropertyGroupDescription PropertyName=”Age”/> | |
| </GroupDescriptions> | |
| <SortDescriptions> | |
| <SortDescription PropertyName=”Age”/> | |
| <SortDescription PropertyName=”LastName”/> | |
| </SortDescriptions> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// This is a Monobehavior callback that happens when the player enters a collider that is set to type "trigger" | |
| /// </summary> | |
| private void OnTriggerEnter(Collider other) | |
| { | |
| // Check the object that collided and store a reference if the player is what entered the zone. | |
| //The Player game object needs to have the Tag set to "Player" for this check to work. | |
| if (other.gameObject.tag.Equals("Player")) | |
| { | |
| _objectToLookAt = other.transform; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class GeneralInteraction : MonoBehaviour | |
| { | |
| private Transform _objectToLookAt = null; | |
| private bool _isRotating = false; | |
| private Quaternion _defaultRotation; | |
| public void Start() | |
| { | |
| //Store the default rotation of the NPC in case it is rotated towards the player object later. | |
| _defaultRotation = transform.rotation; |