| | 1 | | using DCL.Controllers; |
| | 2 | | using System.Collections; |
| | 3 | | using System.Collections.Generic; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | public class BIWController : MonoBehaviour |
| | 7 | | { |
| | 8 | | protected ParcelScene sceneToEdit; |
| | 9 | |
|
| | 10 | | protected bool isEditModeActive = false; |
| | 11 | |
|
| 58 | 12 | | public virtual void Init() { isEditModeActive = false; } |
| | 13 | |
|
| | 14 | | public virtual void EnterEditMode(ParcelScene scene) |
| | 15 | | { |
| 16 | 16 | | this.sceneToEdit = scene; |
| 16 | 17 | | isEditModeActive = true; |
| 16 | 18 | | } |
| | 19 | |
|
| | 20 | | public virtual void ExitEditMode() |
| | 21 | | { |
| 0 | 22 | | isEditModeActive = false; |
| 0 | 23 | | sceneToEdit = null; |
| 0 | 24 | | } |
| | 25 | |
|
| | 26 | | protected virtual void Update() |
| | 27 | | { |
| 0 | 28 | | if (!isEditModeActive) |
| 0 | 29 | | return; |
| 0 | 30 | | FrameUpdate(); |
| 0 | 31 | | } |
| | 32 | |
|
| 0 | 33 | | protected virtual void FrameUpdate() { } |
| | 34 | | } |