コード例 #1
0
		void Start() {
			Profile lastProfile = LoadProfile (GetLastProfileOpened ());
			if(lastProfile != null) CurrentProfile = lastProfile;

			Debug.Log (Application.persistentDataPath);

			onBackdoorToggle = new BackdoorEventManager.BackdoorEvent (OnBackdoorToggle);
			BackdoorEventManager.BackdoorToggle += onBackdoorToggle;
		}
コード例 #2
0
ファイル: Leafs.cs プロジェクト: fromtons/meme-pas-peur_app
		// Use this for initialization
		void Start () {
			animator = GetComponent<Animator> ();
			audioSource = this.GetComponent<AudioSource>();

			onTalkEnded = new TalkEventManager.TalkEvent (OnTalkEnded);
			TalkEventManager.TalkEnded += onTalkEnded;

			onBlowBegin = new MicEventManager.MicEvent (OnBlowBegin);
			MicEventManager.BlowBegin += onBlowBegin;

			onBackdoorToggle = new BackdoorEventManager.BackdoorEvent (OnBackdoorToggle);
			BackdoorEventManager.BackdoorToggle += onBackdoorToggle;
		}
コード例 #3
0
ファイル: Wolf.cs プロジェクト: fromtons/meme-pas-peur_app
		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;
		}