-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#16 Walking animation and rotation addition, optimization and bug cor…
…rection
- Loading branch information
Showing
319 changed files
with
62,003 additions
and
254 deletions.
There are no files selected for viewing
This file contains 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
59 changes: 59 additions & 0 deletions
59
...ssets/.MeshCloudScripting/Presentation1/AnimationScripts/StylizedHumanAnimatorAnimator.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// | ||
// This file was auto-generated from Animator assets in Unity Project MIC. | ||
// | ||
|
||
// <auto-generated /> | ||
|
||
namespace MeshApp.Animations | ||
{ | ||
using System; | ||
using Microsoft.Mesh.CloudScripting; | ||
using Microsoft.Mesh.CloudScripting.Declarations; | ||
|
||
[UserCreatable(false)] | ||
public class StylizedHumanAnimatorAnimator : AnimationNode | ||
{ | ||
private readonly float[] _baseLayerSpeeds = { 1F, }; | ||
|
||
protected StylizedHumanAnimatorAnimator(in Guid ahandle, bool transfer) | ||
: base(ahandle, transfer) | ||
{ } | ||
|
||
public enum BaseLayerState | ||
{ | ||
Idle, | ||
} | ||
|
||
[Replication(ReplicationKind.Full)] | ||
public BaseLayerState CurrentBaseLayerState | ||
{ | ||
get => (BaseLayerState)((int)this[nameof(CurrentBaseLayerState)]); | ||
set | ||
{ | ||
this[nameof(CurrentBaseLayerState)].SetValue((int)value); | ||
SystemTimeOfBaseLayerUpdated = Application.ToServerTime(DateTime.UtcNow).Ticks; | ||
} | ||
} | ||
|
||
public float BaseLayerSpeed | ||
=> _baseLayerSpeeds[(int)this[nameof(CurrentBaseLayerState)]]; | ||
|
||
[Replication(ReplicationKind.Full)] | ||
[Serialized(false)] | ||
internal long SystemTimeOfBaseLayerUpdated | ||
{ | ||
get => (long)GetPropertyAccessor(nameof(SystemTimeOfBaseLayerUpdated)); | ||
set => GetPropertyAccessor(nameof(SystemTimeOfBaseLayerUpdated)).SetValue(value); | ||
} | ||
|
||
internal static StylizedHumanAnimatorAnimator GetOrCreateInstance(in Guid cookie, bool transfer) | ||
{ | ||
var result = GetOrCreateCloudObject( | ||
cookie, | ||
transfer, | ||
(handle, t) => new StylizedHumanAnimatorAnimator(handle, transfer: t)); | ||
|
||
return result as StylizedHumanAnimatorAnimator; | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
4 changes: 2 additions & 2 deletions
4
src/MIC/Assets/.MeshCloudScripting/Presentation1/bin/Debug/net6.0/Presentation1.dll
Git LFS file not shown
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/Presentation1/bin/Debug/net6.0/Presentation1.exe
Git LFS file not shown
This file contains 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
Binary file modified
BIN
+159 Bytes
(100%)
src/MIC/Assets/.MeshCloudScripting/Presentation1/bin/Debug/net6.0/scene.map
Binary file not shown.
4 changes: 2 additions & 2 deletions
4
src/MIC/Assets/.MeshCloudScripting/Presentation1/bin/Release/net6.0/Presentation1.dll
Git LFS file not shown
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/Presentation1/bin/Release/net6.0/Presentation1.exe
Git LFS file not shown
Oops, something went wrong.