PlayerAction.RefreshAfterActionFailed C# (CSharp) Méthode

RefreshAfterActionFailed() protected méthode

Refreshs after the action failed.
protected RefreshAfterActionFailed ( string errorMessage ) : IEnumerator
errorMessage string /// Error message. ///
Résultat IEnumerator
	protected IEnumerator RefreshAfterActionFailed(string errorMessage)
	{
		// set the error message if needed
		if (!string.IsNullOrEmpty(errorMessage)) {
			GameGUIManager.use.SetErrorMessage(errorMessage);
		}
		m_actionProgress = 1f;
		yield return StartCoroutine(Refresh());
	}