| | 1 | | using System; |
| | 2 | | using UnityEngine; |
| | 3 | | using UnityEngine.UI; |
| | 4 | |
|
| | 5 | | public class SectionScenesView : MonoBehaviour, IDisposable |
| | 6 | | { |
| | 7 | | [Header("Cards Containers")] |
| | 8 | | [SerializeField] internal Transform deployedSceneContainer; |
| | 9 | | [SerializeField] internal Transform projectSceneContainer; |
| | 10 | |
|
| | 11 | | [Header("Screens")] |
| | 12 | | [SerializeField] internal GameObject emptyScreen; |
| | 13 | | [SerializeField] internal GameObject contentScreen; |
| | 14 | |
|
| | 15 | | [Header("Group Containers")] |
| | 16 | | [SerializeField] internal GameObject inWorldContainer; |
| | 17 | | [SerializeField] internal GameObject projectsContainer; |
| | 18 | |
|
| | 19 | | [Header("Buttons")] |
| | 20 | | [SerializeField] internal Button btnInWorldViewAll; |
| | 21 | | [SerializeField] internal Button btnProjectsViewAll; |
| | 22 | |
|
| | 23 | | private bool isDestroyed = false; |
| | 24 | |
|
| 6 | 25 | | private void OnDestroy() { isDestroyed = true; } |
| | 26 | |
|
| | 27 | | public void Dispose() |
| | 28 | | { |
| 3 | 29 | | if (!isDestroyed) |
| | 30 | | { |
| 3 | 31 | | Destroy(gameObject); |
| | 32 | | } |
| 3 | 33 | | } |
| | 34 | | } |