Beispiel #1
0
 public static void StopRewind(TimeLord role)
 {
     //System.Console.WriteLine("STOP...");
     role.FinishRewind                      = DateTime.UtcNow;
     RecordRewind.rewinding                 = false;
     PlayerControl.LocalPlayer.moveable     = true;
     HudManager.Instance.FullScreen.enabled = false;
     HudManager.Instance.FullScreen.color   = oldColor;
 }
Beispiel #2
0
 public static void StopRewind(TimeLord role)
 {
     //System.Console.WriteLine("STOP...");
     role.ResetCooldownTimer();
     role.TimeRemaining                     = 0;
     RecordRewind.rewinding                 = false;
     PlayerControl.LocalPlayer.moveable     = true;
     HudManager.Instance.FullScreen.enabled = false;
     HudManager.Instance.FullScreen.color   = oldColor;
 }
Beispiel #3
0
 public static void StartRewind(TimeLord role)
 {
     //System.Console.WriteLine("START...");
     RecordRewind.rewinding             = true;
     RecordRewind.whoIsRewinding        = role;
     PlayerControl.LocalPlayer.moveable = false;
     oldColor = HudManager.Instance.FullScreen.color;
     HudManager.Instance.FullScreen.color   = new Color(0f, 0.5f, 0.8f, 0.3f);
     HudManager.Instance.FullScreen.enabled = true;
     role.TimeRemaining = CustomGameOptions.RewindDuration;
 }
Beispiel #4
0
 void Start()
 {
     timecont =GameObject.FindObjectOfType<TimeLord> ();
 }
 // Use this for initialization
 void Start()
 {
     timeController =GameObject.FindObjectOfType<TimeLord> ();
 }