Files
HauntedBloodlines/Assets/Scripts/AI/StatuesGroupController.cs
2025-05-29 22:31:40 +03:00

33 lines
685 B
C#

using NUnit.Framework;
using System.Collections.Generic;
using UnityEngine;
public class StatuesGroupController : MonoBehaviour
{
[SerializeField] private List<StatueBehaviour> statuesBehaviour;
public void ForceToFreezeStatues()
{
foreach (var statue in statuesBehaviour)
{
statue.ForceToFreezeStatue();
}
}
public void EnableStatuesBehaviour()
{
foreach (var statue in statuesBehaviour)
{
statue.enabled = true;
}
}
public void DisableStatuesBehaviour()
{
foreach (var statue in statuesBehaviour)
{
statue.enabled = false;
}
}
}