private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); }
// Update is called once per frame void Update() { if(!tutorialManager)tutorialManager = GameObject.Find("Tutorial Level Manager").GetComponent<TutorialLevelManager>(); }
private void Start() { tutorialLevelManager = GameObject.Find("LevelManager").GetComponent <TutorialLevelManager>(); }
// Use this for initialization void Start() { text = GetComponent <Text>(); tlm = TutorialLevelManager.instance; SetTarget(); }