Example #1
0
    //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;
    }
Example #2
0
    public void Merge(PathNodeIcon other)
    {
        var otherText = other.m_Text.text;

        m_Text.text = $"{otherText}, {m_Text.text}";
    }