private void ParameterLevel_ValueChanged(object sender, EventArgs e)
 {
     if (_shipID != -1)
     {
         LevelTimer.Start();
         //UpdateLevelParameter( _shipID );
     }
 }
Exemplo 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();
 }
Exemplo 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;
     }
 }
Exemplo n.º 4
0
 void Restart()
 {
     LevelTimer.Reset();
     LevelTimer.Start();
 }