/// <summary> /// Starts this <c>Level</c>. /// </summary> public bool Start() { if (State == LevelState.Running) { SoomlaUtils.LogError(TAG, "Can't start a level that is already running. state=" + State); return(false); } SoomlaUtils.LogDebug(TAG, "Starting level with world id: " + _id); if (!CanStart()) { return(false); } if (State != LevelState.Paused) { Elapsed = 0; LevelStorage.IncTimesStarted(this); } StartTime = this.UseTimeScaling ? Mathf.RoundToInt(Time.time * 1000) : DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond; State = LevelState.Running; return(true); }