void Start() { if (instance == null) { instance = this; loadScrollViewList = new List <GameObject>(); InitScrollViewButton(LayerDepth.Tile); InitScrollViewButton(LayerDepth.Object); CurrentShipGridEditor = EditorManager.Instance.CurrentShipEditGridManager; CurrentShipGridEditor.InitGridDisplay(ref gridDisplay); } else { Debug.LogError("Only one UIEditorManager"); Destroy(this); } }
public void SelectEraser() { m_selectedTileID = null; UIEditorManager.SendUIEvent(UIEditorManager.UIEvent.SetEraser); }
private void Awake() { instance = this; }