private void ParameterLevel_ValueChanged(object sender, EventArgs e)
 {
     if (_shipID != -1)
     {
         LevelTimer.Start();
         //UpdateLevelParameter( _shipID );
     }
 }
Esempio n. 2
0
 void Start()
 {
     if (player == null)
     {
         player = FindObjectOfType <PlayerController>();
     }
     if (UISummary == null)
     {
         UISummary = FindObjectOfType <UISummary>().gameObject;
     }
     if (cameraFollowScript == null)
     {
         cameraFollowScript = FindObjectOfType <CameraFollowPlayer>();
     }
     GenerateTrailList();
     CurrentTrailPointIndex = 0;
     TrailPointAchieved(TrailList[0]);
     levelTimer = LevelTimer.Instance;
     levelTimer.Start();
 }
Esempio n. 3
0
 public LoadLevelForm(string levelname, string scenario)
 {
     InitializeComponent();
     CenterToParent();
     Localize();
     LevelName = levelname;
     DoClose   = false;
     LevelTimer.Start();
     TalkTimer.Start();
     CloseTimer.Start();
     rand     = new Random((int)StringToHash(LevelName));
     Scenario = scenario;
     if (Scenario.Equals("LoadLevel"))
     {
         Text = LoadingLevelText;
     }
     else if (Scenario.Equals("GenDatabase"))
     {
         Text = DatabaseGeneratingText;
     }
 }
Esempio n. 4
0
 void Restart()
 {
     LevelTimer.Reset();
     LevelTimer.Start();
 }