Skip to content

Commit 7060409

Browse files
authored
Update LGameClock.cs
1 parent 46b3c2c commit 7060409

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

LGameClock.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public override void Update()
7575
}
7676
}
7777

78+
// Source : https://github.com/Wampa842/MySummerMods/tree/master/TwentyFourClock //
7879
/// Based on the Sun's rotation, returns whether it's the afternoon.
7980
public bool IsAfternoon => (_rot.Value > 330.0f || _rot.Value <= 150.0f);
8081

@@ -94,6 +95,7 @@ public override void Update()
9495
public int Hour24 => Mathf.FloorToInt(Hour24F);
9596
/// Minute in hour, 0 to 59 integer.
9697
public int Minute => Mathf.FloorToInt(MinuteF);
98+
// End //
9799

98100
public override void OnGUI()
99101
{
@@ -134,4 +136,4 @@ private void GuiSettingsWindow(int id)
134136
if ((bool)ShowTime.GetValue() == false) if (GUI.Button(new Rect(110, 120, 100, 30), "Activate")) ShowTime.Value = true;
135137
}
136138
}
137-
}
139+
}

0 commit comments

Comments
 (0)