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

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

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