コード例 #1
0
        public static void Postfix(PingTracker __instance)
        {
            var position = __instance.GetComponent <AspectPosition>();

            position.DistanceFromEdge = new Vector3(3.1f, 0.1f, 0);
            position.AdjustPosition();

            __instance.text.text =
                "<color=#00FF00FF>TownOfUs " + TownOfUs.GetVersion() + "</color>\n" +
                $"Ping: {AmongUsClient.Instance.Ping}ms\n" +
                (!MeetingHud.Instance
                    ? "tinyurl.com/Town-Of-Us"
                    : "");
        }
コード例 #2
0
        public static void Postfix(VersionShower __instance)
        {
            var text = __instance.text;

            text.text += " - <color=#00FF00FF>TownOfUs " + TownOfUs.GetVersion() + "</color>";
        }