public override void Undo()
    {
        VCComponentData data = m_Data.Copy();

        data.CreateEntity(true, null);
        VCEditor.s_Scene.m_IsoData.m_Components.Insert(m_Index, data);
    }
Beispiel #2
0
    public override void Redo()
    {
        VCComponentData data = m_Data.Copy();

        data.CreateEntity(true, null);
        VCEditor.s_Scene.m_IsoData.m_Components.Insert(m_Index, data);
        VCESelectComponent.s_LastCreate = data.m_Entity.GetComponent <VCEComponentTool>();
    }