update UI lose
This commit is contained in:
@@ -98,6 +98,13 @@ namespace Invector.vCharacterController
|
||||
private void OnDead(GameObject arg0)
|
||||
{
|
||||
ShowText("You are Dead!");
|
||||
|
||||
// Gọi hàm LoseGame từ script FinishGate khi người chơi chết
|
||||
FinishGate gate = Object.FindAnyObjectByType<FinishGate>();
|
||||
if (gate != null)
|
||||
{
|
||||
gate.LoseGame();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void UpdateHUD(vThirdPersonController cc)
|
||||
|
||||
Reference in New Issue
Block a user