Files
butchers-games-test/Assets/Scripts/Game/Level/TriggerMovingPlatforme.cs
T
Boris Nikolaev 5f1e94b653 add project files
2026-08-14 01:58:31 +03:00

26 lines
543 B
C#

using System.Collections.Generic;
using UnityEngine;
public class TriggerMovingPlatforme : MonoBehaviour
{
public List<GameObject> _ListObjectToDisable;
private List<MovingPlatforme> _ListPlatforme = new List<MovingPlatforme>();
public void Init(MovingPlatforme plateforme)
{
_ListPlatforme.Add(plateforme);
}
public void ActiveObstacle()
{
foreach (MovingPlatforme platforme in _ListPlatforme)
{
platforme.Activate(active: true);
}
foreach (GameObject obj in _ListObjectToDisable)
{
obj.SetActive(false);
}
}
}