Exemplo n.º 1
0
    public void TryLookAtEntity(IDCLEntity entity)
    {
        if (entity.meshRootGameObject == null ||
            entity.meshesInfo == null ||
            BIWUtils.IsBoundInsideCamera(entity.meshesInfo.mergedBounds))
        {
            return;
        }

        LookAtEntity(entity);
    }