NDream.AirConsole.Editor.Extentions.OnPlayModeStateChanged C# (CSharp) Méthode

OnPlayModeStateChanged() public static méthode

public static OnPlayModeStateChanged ( PlayModeState currentMode, PlayModeState changedMode ) : void
currentMode PlayModeState
changedMode PlayModeState
Résultat void
		public static void OnPlayModeStateChanged (PlayModeState currentMode, PlayModeState changedMode) {

			if (currentMode == PlayModeState.Stopped && changedMode == PlayModeState.Playing ||
				currentMode == PlayModeState.AboutToPlay && changedMode == PlayModeState.Playing) {

				AirConsole controller = GameObject.FindObjectOfType<AirConsole> ();
				OpenBrowser (controller, Application.dataPath + Settings.WEBTEMPLATE_PATH);
			}
		}