Exemplo n.º 1
0
 public void UpdateMenu()
 {
     APSizeSlider.value = ProjectManager.Instance.APSize;
     Visiblity.SetValue(Base.SceneManager.Instance.ActionObjectsVisible);
     Interactibility.SetValue(Base.SceneManager.Instance.ActionObjectsInteractive);
     APOrientationsVisibility.SetValue(Base.ProjectManager.Instance.APOrientationsVisible);
     RobotsEEVisible.SetValue(Base.SceneManager.Instance.RobotsEEVisible);
 }
 private void Start() {
     Debug.Assert(ActionPointsScrollable != null);
     Debug.Assert(ActionObjectsScrollable != null);
     Debug.Assert(APSizeSlider != null);
     Base.GameManager.Instance.OnLoadScene += OnSceneOrProjectLoaded;
     Base.GameManager.Instance.OnLoadProject += OnSceneOrProjectLoaded;
     Base.GameManager.Instance.OnSceneChanged += OnSceneChanged;
     Base.GameManager.Instance.OnActionPointsChanged += OnActionPointsChanged;
     Base.GameManager.Instance.OnGameStateChanged += GameStateChanged;
     Interactibility.SetValue(false);
 }
Exemplo n.º 3
0
 private void Start()
 {
     Debug.Assert(ActionPointsScrollable != null);
     Debug.Assert(ActionObjectsScrollable != null);
     Debug.Assert(APSizeSlider != null);
     Debug.Assert(Visiblity != null);
     Debug.Assert(Interactibility != null);
     Debug.Assert(APOrientationsVisibility != null);
     Debug.Assert(RobotsEEVisible != null);
     Base.SceneManager.Instance.OnLoadScene                  += OnSceneOrProjectLoaded;
     Base.ProjectManager.Instance.OnLoadProject              += OnSceneOrProjectLoaded;
     Base.GameManager.Instance.OnSceneChanged                += OnSceneChanged;
     Base.ProjectManager.Instance.OnActionPointAddedToScene  += OnActionPointAdded;
     Base.WebsocketManager.Instance.OnActionPointRemoved     += OnActionPointRemoved;
     Base.WebsocketManager.Instance.OnActionPointBaseUpdated += OnActionPointBaseUpdated;
     Base.GameManager.Instance.OnGameStateChanged            += GameStateChanged;
     Interactibility.SetValue(false);
 }
 public void OnSceneOrProjectLoaded(object sender, EventArgs eventArgs) {
     Visiblity.SetValue(Base.Scene.Instance.ActionObjectsVisible);        
     Interactibility.SetValue(Base.Scene.Instance.ActionObjectsInteractive);
 }