MOD!
This commit is contained in:
@@ -1,17 +1,40 @@
|
||||
using System.Collections.Generic;
|
||||
using Continentis.MainGame.UI;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.MainGame.Character
|
||||
{
|
||||
public class CombatCharacterViewBase : SerializedMonoBehaviour
|
||||
public class CombatCharacterViewBase : MonoBehaviour
|
||||
{
|
||||
public CharacterBase character;
|
||||
|
||||
public SpriteRenderer characterSprite;
|
||||
|
||||
public GameObject mainView;
|
||||
public Animator animator;
|
||||
public Dictionary<string, AnimationClip> animationClips;
|
||||
|
||||
public Collider selector;
|
||||
|
||||
public Transform numbersPivot;
|
||||
public Transform textsPivot;
|
||||
public Transform hudPivot;
|
||||
public Transform centerPoint => hudPivot;
|
||||
public HUDContainer hudContainer;
|
||||
|
||||
public void InitializeAnimations()
|
||||
{
|
||||
animationClips = new Dictionary<string, AnimationClip>();
|
||||
|
||||
if (animator == null || animator.runtimeAnimatorController == null)
|
||||
{
|
||||
Debug.LogWarning("Animator or RuntimeAnimatorController is null.");
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (AnimationClip clip in animator.runtimeAnimatorController.animationClips)
|
||||
{
|
||||
animationClips.TryAdd(clip.name, clip);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user