Example #1
0
    protected override void OnDestruct()
    {
        if (null == mTowerEntity)
        {
            return;
        }
        DragEntityLodCmpt lod = mTowerEntity.GetComponent <DragEntityLodCmpt>();

        if (lod != null)
        {
            lod.Deactivate();
        }
    }
Example #2
0
    protected override void OnActivate()
    {
        base.OnActivate();
        if (null == mTowerEntity)
        {
            return;
        }
        DragEntityLodCmpt lod = mTowerEntity.GetComponent <DragEntityLodCmpt>();

        if (lod != null)
        {
            lod.Activate();
        }
    }