WorldClock/Scripts/TimeData.cs
/// <summary>
/// Check to see if the passed TimeData is before this TimeData
/// </summary>
/// <param name="time">the TimeData to check</param>
/// <returns>true if the passed TimeData is before this TimeData</returns>
Check to see if the passed TimeData is before this TimeData
Check to see if the passed TimeData is before this TimeData
public virtual bool IsBehindCurrentTime(TimeData time)
    {
        if (!myGlobalTime.IsMatch(time.myGlobalTime))
        {
            Debug.LogWarning("Cannot compare. These two TimeData objects do not have the same GlobalTime.");
            return false;
        }
        return !IsAtOrPastTime(time);
    }
public virtual bool IsBehindCurrentTime ( TimeData time ) { if ( ! myGlobalTime . IsMatch ( time . myGlobalTime ) ) { Debug . LogWarning ( " " ) ; return false ; } return ! IsAtOrPastTime ( time ) ; }
Check to see if the passed TimeData is before this TimeData
Check to see if the passed TimeData is before this TimeData
true if the passed TimeData is before this TimeData
true if the passed TimeData is before this TimeData
time
TimeData
the TimeData to check
the TimeData to check