void AddSystemMessage(string msg, Vector3 col) { var en = new LogEntry(); // new entry en.Maker = ""; en.Color = S.VecToCol(col); en.Text = msg; Entries.Add(en); TimeToHideEntireLog = Time.time + FadeTime; Sfx.PlayOmni("Chat - drip"); }
public void Update(float timeLeft) { if (!announcedMatchStart) { announcedMatchStart = true; Sfx.PlayOmni("321Fight"); } if // there's pending announcements (times.Count > 0 && timeLeft < times[0].Time) { Sfx.PlayOmni(times[0].Sound); times.RemoveAt(0); } }
public void AddEntry(string name, string s, Vector3 col) { var en = new LogEntry(); // new entry en.Maker = name; en.Color = S.VecToCol(col); en.Text = s; Entries.Add(en); TimeToHideEntireLog = Time.time + FadeTime; if (name != "+") { Sfx.PlayOmni("Chat - drip"); } }