private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
    }
Пример #2
0
 // Update is called once per frame
 void Update()
 {
     if(!tutorialManager)tutorialManager = GameObject.Find("Tutorial Level Manager").GetComponent<TutorialLevelManager>();
 }
Пример #3
0
 private void Start()
 {
     tutorialLevelManager = GameObject.Find("LevelManager").GetComponent <TutorialLevelManager>();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     text = GetComponent <Text>();
     tlm  = TutorialLevelManager.instance;
     SetTarget();
 }