Ejemplo n.º 1
0
    void RefreshVisions()
    {
        var me  = GameCore.Instance.MePlayer;
        var mus = UC.AllModels();

        foreach (var mu in mus)
        {
            if (mu.U == null)
            {
                continue;
            }

            mu.IsMine     = mu.U.Player == me;
            mu.WithVision = mu.U.cfg.VisionRadius > 0 && (mu.IsMine || mu.IsNeutral);
            mu.RefreshVision();
            mu.RefreshColor();
        }
    }