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