Пример #1
0
 public static void Postfix(IntroCutScene.CKACLKCOJFO __instance)
 {
     if (PlayerController.getLocalPlayer().hasComponent("Sheriff"))
     {
         __instance.__this.Title.Text                   = "Sheriff";
         __instance.__this.Title.Color                  = Sheriff.color;
         __instance.__this.ImpostorText.Text            = "Shoot the [FF0000FF]Impostor";
         __instance.__this.BackgroundBar.material.color = Sheriff.color;
     }
 }
Пример #2
0
 static void Postfix(ref IntroCutScene.CKACLKCOJFO __instance)
 {
     if (IsSheriff(PlayerControl.LocalPlayer.PlayerId))
     {
         IntroCutScene localscene = __instance.field_Public_PENEIDJGGAF_0;
         localscene.Title.Text = "Sheriff";
         PlayerControl.LocalPlayer.nameText.Color = localscene.Title.Color = Palette.HPMGFCCJLIF;
         //localscene.Title.scale /= 1.5f; // "Sheriff" isn't that big as "The Sheriff"
         localscene.ImpostorText.Text            = "Kill the [FF0000FF]Impostor";
         localscene.BackgroundBar.material.color = Palette.HPMGFCCJLIF;
         PlayerControl.LocalPlayer.SetKillTimer(8f);
     }
 }