Thank you so much for this, it helped alot, you deserve more subs, also thanks to this video, it gave me an idea if I could do the same thing if an enemy runs into you except have a game over message
It never works for me, I spend two nights repeatly check each steps from this video in my code, it either demage my entire project or never trigger out You Win!!!!!!!! text.
1st one using UnityEngine; using System.Collections; public class triggerini : MonoBehaviour { void OnTriggerEnter() { } } 2nd one using UnityEngine; using System.Collections; public class GameManager : MonoBehaviour { public static GameManager instance = null; public GameObject youWinText; public float resetDelay; void Awake() { if (instance == null) instance = this; else if (instance != null) Destroy(gameObject); } public void Win() { youWinText.SetActive(true); Time.timeScale = .2f; Invoke ("Reset", resetDelay); } void Reset() { Time.timeScale = 1.0f; Application.LoadLevel(Application.loadedLevel); } }
Thank you so much for this, it helped alot, you deserve more subs, also thanks to this video, it gave me an idea if I could do the same thing if an enemy runs into you except have a game over message
This is soo handy man, thank you so much!
Thank you so much dude,l was working on another project but l forgot to check( Is trigger).
Thank you for this, it helped me out big time!
can you send the c# script
many errs with me
thank you. it's working perfectly!
not working
It never works for me, I spend two nights repeatly check each steps from this video in my code, it either demage my entire project or never trigger out You Win!!!!!!!! text.
you have to type the code the exact way he types it, cause it works for me, I am using the 2019 version of unity
@@nicklopez8004 Thank you so much.
If we lost it how to display same way?
Hi! I need a JavaScript that allows me to go to the next level after I have reached a 5000 score ??pinball game
It doesn't work for me.
You Win text visible at start. help??
disable it then play
the link please of the scripts
1st one
using UnityEngine;
using System.Collections;
public class triggerini : MonoBehaviour
{
void OnTriggerEnter()
{
}
}
2nd one
using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour
{
public static GameManager instance = null;
public GameObject youWinText;
public float resetDelay;
void Awake()
{
if (instance == null)
instance = this;
else if (instance != null)
Destroy(gameObject); }
public void Win()
{
youWinText.SetActive(true);
Time.timeScale = .2f;
Invoke ("Reset", resetDelay);
}
void Reset()
{
Time.timeScale = 1.0f;
Application.LoadLevel(Application.loadedLevel);
}
}
Are you a teacher?
and thank you for the information it is helping me a lot.