WorldClock/Scripts/ClockLibrary.cs
/// <summary>
/// Registers a WorldClock for quick lookup 
/// </summary>
/// <param name="clockToRegister"> The <see cref="WorldClock"/> to track in the library</param>
Registers a WorldClock for quick lookup
Registers a WorldClock for quick lookup
public void RegisterClock(WorldClock clockToRegister)
    {
        if (!allClocks.ContainsKey(clockToRegister.ClockID))
            allClocks.Add(clockToRegister.ClockID, clockToRegister);
        else
            Debug.LogWarningFormat("WorldClock {0} has already been registered. Do you have multiple instances of the same clock, or instances with the same id?", clockToRegister.ClockID);
    }
public void RegisterClock ( WorldClock clockToRegister ) { if ( ! allClocks . ContainsKey ( clockToRegister . ClockID ) ) allClocks . Add ( clockToRegister . ClockID , clockToRegister ) ; else Debug . LogWarningFormat ( " " , clockToRegister . ClockID ) ; }
Registers a WorldClock for quick lookup
Registers a WorldClock for quick lookup
clockToRegister
WorldClock
The  to track in the library
The to track in the library