BeardedManStudios.Network.Unit.UnitRPC.Failure C# (CSharp) Метод

Failure() приватный Метод

private Failure ( string message ) : void
message string
Результат void
		private void Failure(string message)
		{
#if UNITY_EDITOR
			UnityEditor.EditorApplication.isPlaying = false;
#else
			Application.Quit();
#endif
			GetComponent<Camera>().backgroundColor = Color.red;

			throw new ForgeUnitException("ERROR: " + message);
		}
		private void AllSuccess() { GetComponent<Camera>().backgroundColor = Color.green; }