added timeout after game win
This commit is contained in:
parent
e4c62bda74
commit
cf64a7cfc7
1 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,7 @@ public class WinAnimationController : MonoBehaviour {
|
||||||
|
|
||||||
// Reveal Win Text
|
// Reveal Win Text
|
||||||
yield return StartCoroutine(RevealWinText(1));
|
yield return StartCoroutine(RevealWinText(1));
|
||||||
|
StartCoroutine(LeaveRoom());
|
||||||
yield return null;
|
yield return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,4 +179,10 @@ public class WinAnimationController : MonoBehaviour {
|
||||||
_winText.color = new Color(1, 1, 1, limit);
|
_winText.color = new Color(1, 1, 1, limit);
|
||||||
yield return null;
|
yield return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IEnumerator LeaveRoom()
|
||||||
|
{
|
||||||
|
yield return new WaitForSeconds(7.0f);
|
||||||
|
GameManager.ActiveManager.LeaveRoom();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue