using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BNG {
///
/// This component gives you a convenient way to group together GameObjects and toggle them on / off
///
public class UICanvasGroup : MonoBehaviour {
public List CanvasObjects;
public void ActivateCanvas(int CanvasIndex) {
for(int x = 0; x < CanvasObjects.Count; x++) {
if(CanvasObjects[x] != null) {
CanvasObjects[x].SetActive(x == CanvasIndex);
}
}
}
}
}