| | 1 | | using System.Collections; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using UnityEngine; |
| | 4 | |
|
| | 5 | | namespace DCL.Skybox |
| | 6 | | { |
| | 7 | | public class CopyFunctionality |
| | 8 | | { |
| | 9 | | private TextureLayer copiedLayer; |
| | 10 | | public Config3DSatellite copiedSatellite; |
| | 11 | |
|
| 0 | 12 | | public bool IsTextureLayerAvailable() { return copiedLayer != null; } |
| | 13 | |
|
| 0 | 14 | | public bool IsDomeAvailable() { return copiedLayer != null; } |
| 0 | 15 | | public bool IsSatelliteAvailable() { return copiedSatellite != null; } |
| | 16 | |
|
| 0 | 17 | | public void SetTextureLayer(TextureLayer layer) { copiedLayer = layer; } |
| | 18 | |
|
| 0 | 19 | | public TextureLayer GetCopiedTextureLayer() { return copiedLayer; } |
| | 20 | |
|
| 0 | 21 | | public void SetDome(Config3DDome dome) { copiedLayer = dome.layers; } |
| | 22 | |
|
| 0 | 23 | | public void SetSatellite(Config3DSatellite satellite) { copiedSatellite = satellite; } |
| | 24 | |
|
| | 25 | | public Config3DDome GetCopiedDome() |
| | 26 | | { |
| 0 | 27 | | Config3DDome dome = new Config3DDome(copiedLayer.nameInEditor); |
| 0 | 28 | | dome.layers = copiedLayer; |
| 0 | 29 | | return dome; |
| | 30 | | } |
| 0 | 31 | | public Config3DSatellite GetCopiedSatellite() { return copiedSatellite; } |
| | 32 | | } |
| | 33 | | } |