示例#1
0
 private void BackDoIt(List <T_OpItem> inList)
 {
     for (int i = inList.Count - 1; i >= 0; --i)
     {
         DoModification(inList[i].m_GameObject, LevelToolsData.GetOpposite(inList[i].m_Operation), inList[i].m_ApplyOnChild, null);
     }
 }
示例#2
0
    private void CreateToolData()
    {
        MFDebugUtils.Assert(m_ToolsData == null);
        MFDebugUtils.Assert(m_ValidScene == true);

        GameObject game = GameObject.Find("hra");

        MFDebugUtils.Assert(game != null);

        m_ToolsData = game.GetComponent <LevelToolsData>();
        MFDebugUtils.Assert(m_ToolsData == null);
        if (m_ToolsData == null)
        {
            m_ToolsData = game.AddComponent <LevelToolsData>() as LevelToolsData;
        }
    }
示例#3
0
    internal void Initialize()
    {
        m_ToolsData  = null;
        m_ValidScene = false;

        GameObject game = GameObject.Find("hra");

        if (game != null)
        {
            m_ValidScene = true;
            m_ToolsData  = game.GetComponent <LevelToolsData>();
            // dont create until we need it.
//            if(m_ToolsData == null)
//            {
//                m_ToolsData = game.AddComponent<LevelToolsData>() as LevelToolsData;
//            }
        }
        else
        {
            Debug.LogWarning("LevelTools.Initialize - I can't find GameObject with name 'hra'");
        }

        m_Scene = EditorApplication.currentScene;
    }