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; }
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; }
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; }
void Start() { timecont =GameObject.FindObjectOfType<TimeLord> (); }
// Use this for initialization void Start() { timeController =GameObject.FindObjectOfType<TimeLord> (); }