예제 #1
0
    // Use this for initialization
    void Start()
    {
        m_cLoadNode = new C_LOADNODE();
        m_cLoadNode.load();
        m_arNodeColor = new int[4];
        m_goNode      = null;

        m_goTower      = new GameObject();
        m_goTower.name = "TowerHolder";

        for (int i = 0; i < 4; i++)
        {
            if (i < 2)
            {
                m_arNodeColor[i] = colorChangeInt(m_cLoadNode.getImpossibleNode(i).GetComponent <Renderer>().sharedMaterial.color);
            }
            else
            {
                m_arNodeColor[i] = colorChangeInt(m_cLoadNode.getPossibleNode(i - 2).GetComponent <Renderer>().sharedMaterial.color);
            }
        }

        m_nNodeIndex       = 0;
        m_nBackgroundColor = 827160832;
        m_cTowerSelect     = gameObject.GetComponent <MapEdit.C_TOWERSELECT>();

        m_cDefenceMap = new C_CUSTOMDEFENCEMAP();
        m_cDefenceMap.init(m_cLoadNode);

        m_bStart        = false;
        m_bRoadBuilding = false;
        m_bFloorEdit    = false;
    }
예제 #2
0
    public void release()
    {
        m_cLoadNode = null;

        m_goNode       = null;
        m_cTowerSelect = null;
    }