Attack animation, colliders, triggering

This commit is contained in:
ThomasCharester committed 2026-10-25 19:14:56 +03:00
1 parent 3e631899ea
commit e61fcb78cf
94 files changed
+142319 -25861

No files matched your search

@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Threading;
using Cysharp.Threading.Tasks;
using Unity.VisualScripting;
using UnityEngine;
namespace Code.OfficeGame.BattleMode.Actions
@@ -12,12 +13,14 @@ namespace Code.OfficeGame.BattleMode.Actions
public abstract UniTask DecideAction(CancellationToken ctx);
public Animator animator;
[DoNotSerialize] public Animator animator;
protected readonly Dictionary<BattleActionType, BattleAction> BattleActions = new();
private void Awake()
{
animator = GetComponentInChildren<Animator>();
foreach (var action in GetComponents<BattleAction>())
{
BattleActions.Add(action.ActionType, action);