Ejemplo n.º 1
0
		void OnListening(WolfEventArgs eventArgs) {
			if(eventArgs.Listening != null)
				_listening = eventArgs.Listening;
		}
Ejemplo n.º 2
0
		public static void TriggerWolfChangeState(WolfEventArgs eventArgs = null) {
			if (WolfChangeState != null)
				WolfChangeState (eventArgs);
		}
Ejemplo n.º 3
0
		public static void TriggerWolfListening(WolfEventArgs eventArgs = null) {
			if (WolfListening != null)
				WolfListening (eventArgs);
		}
Ejemplo n.º 4
0
		void OnWolfStateChange(WolfEventArgs e) {
			if (travelling && e.State == Wolf.STATE_AWAKEN) {
				// Don't try to go back if we already are at origin position
				if (checkIfAlreadyAtOrigin())
					return;
			
				goBack ();
			} else {
				afterGoingBack ();
			}
		}