コード例 #1
0
        public BigWorldBuild(long buildId, GameObject buildObj, ParticleScale wallEffectMaterial)
        {
            this.m_BuildID        = buildId;
            this.m_buildObj       = buildObj;
            this.m_unlockMaterial = BigWorldGameObject.GetBuildCommonMatByName("UnLock.mat");
            //this.m_cacheMaterial = cacheMaterial;
            this.m_confBuild = ConfBuilding.Get(buildId);
            long[] m_sceneIDs        = CommonTools.StringToLongArray(m_confBuild.sceneIds);
            long[] m_completeTaskIDs = CommonTools.StringToLongArray(m_confBuild.taskIds);
            m_achorData   = new BuidAchorData(buildId, m_sceneIDs, m_completeTaskIDs);
            this.status   = 0;
            this.m_srcPos = buildObj.transform.position;
            //this.m_unlockMaterial = unLockMaterial;
            this.m_unLockEffect = wallEffectMaterial;
            //this.m_dimianEffectMat = dimainEffectMat;
            //Transform wallTran = buildObj.transform.Find("wall");

            //if (wallTran != null)
            //{
            //    this.m_buildWall = wallTran.gameObject;
            //    this.m_buildWall.SetActive(false);
            //}
        }