コード例 #1
0
ファイル: DialogPlayer.cs プロジェクト: DanielCantz/Dawntown
 void Start()
 {
     _soundContainer   = SoundContainer.Instance;
     _soundSource      = _soundContainer.GetComponent <AudioSource>();
     _enemyGameManager = EnemyGameManager.Instance;
     _languageManager  = LanguageManager.Instance;
     _hudCanvas        = GameObject.FindWithTag("HUD").GetComponent <PopUpManager>();
     _player           = GameObject.FindWithTag("Player");
     dialogueCallback  = DialogueEventCallback;
     StartCoroutine(Cooldown());
 }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        //portal.SetActive(false);
        _soundContainer  = SoundContainer.Instance;
        _soundSource     = _soundContainer.GetComponent <AudioSource>();
        _languageManager = LanguageManager.Instance;
        _hudCanvas       = GameObject.FindWithTag("HUD").GetComponent <PopUpManager>();

        dialogueCallback = DialogueEventCallback;
        Invoke("EstellaAppears", 2);
    }