private void OnFinishSceneLoad(Object p_sender, EventArgs p_args) { Grid grid = LegacyLogic.Instance.MapLoader.Grid; Int32 width = grid.Width; Int32 height = grid.Height; ClearMapNoteViews(); MapNoteCollection mapNotes = LegacyLogic.Instance.WorldManager.MapNotesController.GetMapNotes("theworld.xml"); foreach (MapNote note in mapNotes.Values) { CreateMapNoteView(note); } }
private void OnFinishSceneLoad(Object p_sender, EventArgs p_args) { Grid grid = LegacyLogic.Instance.MapLoader.Grid; Int32 width = grid.Width; Int32 height = grid.Height; m_MouseClickPlane.localScale = new Vector3(width * 24, height * 24, 1f); Vector3 localPosition = m_MouseClickPlane.localPosition; localPosition.x = -12f; localPosition.y = -12f; m_MouseClickPlane.localPosition = localPosition; ClearMapNoteViews(); MapNoteCollection mapNotes = LegacyLogic.Instance.WorldManager.MapNotesController.GetMapNotes(); foreach (MapNote note in mapNotes.Values) { CreateMapNoteView(note); } }