WorldClock/Scripts/ClockLibrary.cs
/// <summary>
/// Sets an already registered clock active by its ID
/// </summary>
/// <param name="clockID">the id of the <see cref="WorldClock"/> to set active</param>
Sets an already registered clock active by its ID
Sets an already registered clock active by its ID
public void SetActiveClock(string clockID)
    {
        if (!allClocks.ContainsKey(clockID))
            Debug.LogWarningFormat("Please register the clock {0} before attempting to set it active.", clockID);
        else
            ActiveClock = allClocks[clockID];
    }
public void SetActiveClock ( string clockID ) { if ( ! allClocks . ContainsKey ( clockID ) ) Debug . LogWarningFormat ( " " , clockID ) ; else ActiveClock = allClocks [ clockID ] ; }
Sets an already registered clock active by its ID
Sets an already registered clock active by its ID
clockID
string
the id of the  to set active
the id of the to set active