Beispiel #1
0
    private void Awake()
    {
        instance = this;

        this.allWelcomeLines = Resources.LoadAll <AudioClip>(this.directoryPath + "Welcome");
        this.allStartLines   = Resources.LoadAll <AudioClip>(this.directoryPath + "Start");
        this.allEndLines     = Resources.LoadAll <AudioClip>(this.directoryPath + "End");
        this.tutorialLine    = Resources.Load <AudioClip>(this.directoryPath + "js_round_reverb");

        DontDestroyOnLoad(this);
    }
    public void OnRaise(string name, AudioClip voiceLine)
    {
        VoiceLineManager manager = onRaise.GetPersistentTarget(0) as VoiceLineManager;

        manager.Setup(name, voiceLine);
    }