feat: more combat tweaks

shuriken can now be thrown
jumping animtions
jumping animations timing
state machine changes
start of online integration
This commit is contained in:
Chris
2026-01-15 14:42:25 -05:00
parent a06784f7b6
commit 25b7fae339
45 changed files with 28662 additions and 250 deletions

View File

@@ -1,14 +1,13 @@
using System;
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using Unity.Netcode;
using Unity.Netcode.Components;
using Reset.Units;
using UnityEngine;
namespace Reset.Core {
[Category("Reset")]
[Description("Sends an animation trigger with network sync to networked objects")]
public class SendAnimationTrigger : ActionTask<NetworkAnimator>{
public class SendAnimationTrigger : ActionTask<UnitAnimation>{
public BBParameter<string> trigger;
//Use for initialization. This is called only once in the lifetime of the task.
@@ -21,11 +20,8 @@ namespace Reset.Core {
//Call EndAction() to mark the action as finished, either in success or failure.
//EndAction can be called from anywhere.
protected override void OnExecute(){
try {
agent.SetTrigger(trigger.value);
} catch (Exception e) {
Debug.LogError($"Did not set Network Animator trigger <i>{trigger.name}</i> on <b>{(agent == null ? null : agent.name)}</b>: {e.Message}");
}
agent.SendAnimationTrigger(trigger.value);
EndAction(true);
}