Skip to content

Commit

Permalink
Upgrade to Unity 6 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7c13 committed Oct 18, 2024
1 parent 5a63a2b commit 2bb0d5e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ namespace Pal3.Game.GameSystems.Combat.Actor.Controllers

public sealed class CombatActorController : GameEntityScript
{
private const string COMBAT_ANIMATION_ATTACK_EVENT_NAME_PREFIX = "work";
private const string COMBAT_ANIMATION_NORMAL_ATTACK_EVENT_NAME_PREFIX = "work";
private const string COMBAT_ANIMATION_JUMP_ATTACK_EVENT_NAME_PREFIX = "flydown";

private CombatActor _actor;
private ActorActionController _actionController;
Expand Down Expand Up @@ -47,9 +48,13 @@ public void Init(CombatActor actor,

private void AnimationEventTriggered(object sender, string eventName)
{
if (eventName.StartsWith(COMBAT_ANIMATION_ATTACK_EVENT_NAME_PREFIX, StringComparison.Ordinal))
if (eventName.StartsWith(COMBAT_ANIMATION_NORMAL_ATTACK_EVENT_NAME_PREFIX, StringComparison.Ordinal))
{
// TODO: Impl attack behavior
// TODO: Impl normal attack behavior
}
else if (eventName.StartsWith(COMBAT_ANIMATION_JUMP_ATTACK_EVENT_NAME_PREFIX, StringComparison.Ordinal))
{
// TODO: Impl jump attack behavior
}
}

Expand Down
2 changes: 1 addition & 1 deletion Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"com.unity.feature.development": "1.0.2",
"com.unity.ide.rider": "3.0.31",
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.inputsystem": "1.10.0",
"com.unity.inputsystem": "1.11.1",
"com.unity.memoryprofiler": "1.1.1",
"com.unity.mobile.android-logcat": "1.4.3",
"com.unity.postprocessing": "3.4.0",
Expand Down
2 changes: 1 addition & 1 deletion Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"url": "https://packages.unity.com"
},
"com.unity.inputsystem": {
"version": "1.10.0",
"version": "1.11.1",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 6000.0.20f1
m_EditorVersionWithRevision: 6000.0.20f1 (05208a74e9aa)
m_EditorVersion: 6000.0.23f1
m_EditorVersionWithRevision: 6000.0.23f1 (1c4764c07fb4)

0 comments on commit 2bb0d5e

Please sign in to comment.