コード例 #1
0
    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
ファイル: TutorialTrigger.cs プロジェクト: skiddmcmarx/4TONS
 private void Start()
 {
     tutorialLevelManager = GameObject.Find("LevelManager").GetComponent <TutorialLevelManager>();
 }
コード例 #4
0
ファイル: TargetText.cs プロジェクト: kaystrife/Cheese-Chaser
 // Use this for initialization
 void Start()
 {
     text = GetComponent <Text>();
     tlm  = TutorialLevelManager.instance;
     SetTarget();
 }