Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
negrifelipe committed Dec 3, 2020
1 parent 12ff227 commit 72224ce
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Announcer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,19 @@ protected override async UniTask OnLoadAsync()
{
m_Logger.LogInformation("Announcer Loaded");
m_Logger.LogInformation("FPlugins Discord: https://discord.gg/RuWChce");
AsyncHelper.Schedule("Announcement Start", () => Announcement().AsTask());
Level.onLevelLoaded += OnLevelLoaded;
Load = true;
}


private void OnLevelLoaded(int level)
{
level++;
if(level == 2)
{
AsyncHelper.Schedule("Announcement Start", () => Announcement().AsTask());
}
}

#pragma warning disable 1998
protected override async UniTask OnUnloadAsync()
#pragma warning restore 1998
Expand Down

0 comments on commit 72224ce

Please sign in to comment.