| | 1 | | using DCL.Controllers; |
| | 2 | | using System.Collections; |
| | 3 | | using System.Collections.Generic; |
| | 4 | | using DCL.Builder; |
| | 5 | | using UnityEngine; |
| | 6 | |
|
| | 7 | | public abstract class BIWController : IBIWController |
| | 8 | | { |
| | 9 | | internal ParcelScene sceneToEdit; |
| | 10 | |
|
| | 11 | | protected bool isEditModeActive = false; |
| | 12 | | protected IContext context; |
| | 13 | | public virtual void Initialize(IContext context) |
| | 14 | | { |
| 9 | 15 | | this.context = context; |
| 9 | 16 | | isEditModeActive = false; |
| 9 | 17 | | } |
| | 18 | |
|
| | 19 | | public virtual void EnterEditMode(IParcelScene scene) |
| | 20 | | { |
| 225 | 21 | | this.sceneToEdit = (ParcelScene)scene; |
| 225 | 22 | | isEditModeActive = true; |
| 225 | 23 | | } |
| | 24 | |
|
| | 25 | | public virtual void ExitEditMode() |
| | 26 | | { |
| 0 | 27 | | isEditModeActive = false; |
| 0 | 28 | | sceneToEdit = null; |
| 0 | 29 | | } |
| | 30 | |
|
| 0 | 31 | | public virtual void OnGUI() { } |
| | 32 | |
|
| 0 | 33 | | public virtual void LateUpdate() { } |
| | 34 | |
|
| 0 | 35 | | public virtual void Update() { } |
| | 36 | |
|
| 0 | 37 | | public virtual void Dispose() { } |
| | 38 | | } |