Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public void SelectEraser()
 {
     m_selectedTileID = null;
     UIEditorManager.SendUIEvent(UIEditorManager.UIEvent.SetEraser);
 }
 private void Awake()
 {
     instance = this;
 }