//int m_IndexBeingModified; void Start() { m_TileGrid = FindObjectOfType <TileGrid>(); m_TilesPalette = FindObjectOfType <TilesPalette>(); m_ToolsPalette = FindObjectOfType <ToolsPalette>(); m_ToolID = Tools.PATH; s_PathIconPrefab = m_PathIconPrefab; s_AnchorIconPrefab = m_AnchorIconPrefab; s_NodeIconPrefab = m_NodeIconPrefab; GlobalData.PlayModePreToggle += OnPlayModePreToggle; }
public void Merge(PathNodeIcon other) { var otherText = other.m_Text.text; m_Text.text = $"{otherText}, {m_Text.text}"; }