/// <summary> /// Copy an instance of the <see cref="UnityEzExp.EzTimer"/>. /// </summary> /// <param name="toCopy">Instance to copy.</param> public EzTimer(EzTimer toCopy): this() { _temporalState = toCopy._temporalState; _startTime = toCopy._startTime; foreach(float b in toCopy._breaks) { _breaks.Add(b); } _endTime = toCopy._endTime; // forces duration to be computed before assigning it _duration = toCopy.GetRawDuration(); }