コード例 #1
0
    private float m_fltSubtitleTimer;     // keep track of how long a subtitle should be displayed

    // on loaded
    void Awake()
    {
        Instance         = this;                              // set the instance to this object reference
        m_voBank         = this.GetComponent <VOBank>();      // get the vo bank reference
        m_audSrc         = this.GetComponent <AudioSource>(); // get the audio source on this object
        m_externalAudSrc = null;                              // reset the external audio source
    }
コード例 #2
0
 private void OnEnable()
 {
     // set the reference to the current inspected object
     voBank = (VOBank)target;
 }
コード例 #3
0
 // on enabled
 void OnEnable()
 {
     m_audSrc = this.GetComponent<AudioSource>();    // get the object's audio source component
     voBank = this.GetComponent<VOBank>();           // get the VOBank reference
 }
コード例 #4
0
ファイル: VOBankEditor.cs プロジェクト: CephasT/DomiPalnes
 // on enabled
 private void OnEnable()
 {
     // set the reference to the current inspected object
     voBank = (VOBank)target;
 }