r2mods/ilspy_dump/ror2_csproj/RoR2/WarCryOnCombatDisplayContro...

40 lines
743 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System;
using UnityEngine;
namespace RoR2;
[Obsolete]
public class WarCryOnCombatDisplayController : MonoBehaviour
{
private CharacterBody body;
[Tooltip("The child gameobject to enable when the warcry is ready.")]
public GameObject readyIndicator;
public void Start()
{
CharacterModel component = base.transform.root.gameObject.GetComponent<CharacterModel>();
if ((bool)component)
{
body = component.body;
}
UpdateReadyIndicator();
}
public void FixedUpdate()
{
UpdateReadyIndicator();
}
private void UpdateReadyIndicator()
{
bool active = (bool)body && IsBodyWarCryReady(body);
readyIndicator.SetActive(active);
}
private static bool IsBodyWarCryReady(CharacterBody body)
{
return false;
}
}