protected override void OnDestruct() { if (null == mTowerEntity) { return; } DragEntityLodCmpt lod = mTowerEntity.GetComponent <DragEntityLodCmpt>(); if (lod != null) { lod.Deactivate(); } }
protected override void OnActivate() { base.OnActivate(); if (null == mTowerEntity) { return; } DragEntityLodCmpt lod = mTowerEntity.GetComponent <DragEntityLodCmpt>(); if (lod != null) { lod.Activate(); } }