|
@@ -59,6 +59,7 @@ public class Paper : MonoBehaviour
|
|
|
|
|
|
public IEnumerable<Folding> Folding => foldingsParent.Cast<Transform>().Select(x => x.GetComponent<Folding>());
|
|
|
private Action levelCompleteCallBack;
|
|
|
+ public Action wrongPaperFolded;
|
|
|
private void Awake()
|
|
|
{
|
|
|
backFilter = paperBackRenderer.GetComponent<MeshFilter>();
|
|
@@ -75,9 +76,10 @@ public class Paper : MonoBehaviour
|
|
|
.setOnComplete(() => LoadingState.IsLoading = false);
|
|
|
}
|
|
|
|
|
|
- public void setPaperCallBack(Action levelCompleteCallBackTemp)
|
|
|
+ public void setPaperCallBack(Action levelCompleteCallBackTemp, Action wrongPaperFoldedTemp)
|
|
|
{
|
|
|
levelCompleteCallBack = levelCompleteCallBackTemp;
|
|
|
+ wrongPaperFolded = wrongPaperFoldedTemp;
|
|
|
}
|
|
|
|
|
|
// Start is called before the first frame update
|
|
@@ -419,7 +421,7 @@ public class Paper : MonoBehaviour
|
|
|
YandexSDK.instance.ShowInterstitial();
|
|
|
|
|
|
UIManager.wrongPaperFolded?.Invoke();
|
|
|
-
|
|
|
+ wrongPaperFolded?.Invoke();
|
|
|
yield break;
|
|
|
}
|
|
|
|