示例#1
0
 public static void SetTimeLeft(int val)
 {
     ScoreTop.TimeTimer      = Time.time + (float)val;
     ScoreTop.TimeLeft       = val;
     ScoreTop.detonationTime = (float)val;
     ScoreTop.UpdateTimeLeft();
 }
示例#2
0
 public static void SetData(int gamemode, int fraglimit, int timeleft, int friendlyfire)
 {
     ScoreTop.GameMode     = gamemode;
     ScoreTop.FragLimit    = fraglimit;
     ScoreTop.FriendlyFire = friendlyfire;
     ScoreTop.sFragLimit   = fraglimit.ToString();
     ScoreTop.TimeTimer    = Time.time + (float)timeleft;
     ScoreTop.TimeLeft     = timeleft;
     ScoreTop.UpdateTimeLeft();
 }
示例#3
0
    private void DrawTimer()
    {
        int num = (int)(ScoreTop.TimeTimer - Time.time);

        if (num != ScoreTop.TimeLeft)
        {
            ScoreTop.TimeLeft = num;
            ScoreTop.UpdateTimeLeft();
        }
        if (!ScoreTop.bombIndicator)
        {
            GUI2.DrawTextRes(this.rScore, ScoreTop.sTimeLeft, TextAnchor.MiddleCenter, _Color.White, 0, 12, true);
        }
    }