// Use this for initialization void Start () { animator = this.GetComponent<Animator> (); initialScale = this.transform.localScale; TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID="piri", AudioClipId=0, Autoplay=false }); onTalkEnded = new TalkEventManager.TalkEvent (OnTalkEnded); TalkEventManager.TalkEnded += onTalkEnded; onWolfStateChange = new WolfEventManager.WolfEvent (OnWolfStateChange); WolfEventManager.WolfChangeState += onWolfStateChange; }
void Start() { animator = this.GetComponent<Animator> (); if(audio == null) audio = this.GetComponent<AudioSource> (); onSoundCapBegin = new MicEventManager.MicEvent (OnSoundCapBegin); MicEventManager.SoundCapBegin += onSoundCapBegin; onListening = new WolfEventManager.WolfEvent (OnListening); WolfEventManager.WolfListening += onListening; onBackdoorToggle = new BackdoorEventManager.BackdoorEvent (OnBackdoorToggle); BackdoorEventManager.BackdoorToggle += onBackdoorToggle; }