Esempio n. 1
0
        public async Task <bool> maybeUpdateMumble()
        {
            var b = await Task.Run(async() =>
            {
                var a = Mumble.Read();
                if (a == null || a.Context == null || a.Identity == null)
                {
                    return(false);
                }

                bool result = maybeUpdateMap(a.Context.MapId);
                return(result || (await maybeUpdateTeam(a.Identity.TeamColorId)));
            });

            return(b);
        }
Esempio n. 2
0
        public void Test_implementsSearchForNewer()
        {
            var m = new Mumble(false);

            Assert.IsTrue(m.implementsSearchForNewer());
        }
Esempio n. 3
0
 private void Awake()
 {
     this.Camera = this.GetComponent <Camera>();
     this.Mumble = this.GetComponent <Mumble>();
 }
Esempio n. 4
0
    private void Awake()
    {
        this.Mumble = this.GetComponent <Mumble>();

        this.CurrentMapId = this.Mumble.Link.GetCoordinates().MapId;
    }
Esempio n. 5
0
 public void resetMumble()
 {
     Mumble.Dispose();
     Mumble = MumbleLinkFile.CreateOrOpen();
 }
Esempio n. 6
0
 public void Setup()
 {
     mumble = new Mumble();
 }