33 lines
685 B
C#
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;
|
|
}
|
|
}
|
|
}
|