private void OnPuzzleSolved(EventPuzzle puzzleEvent) { if (_isReturning) { return; } _isSolved = true; if (puzzleEvent.GameObjectName == glassBridge.name) { Debug.Log("BridgeLevelManager: GLASS PuzzleSolved"); SetNextCheckPoint(glassCheckPoint); return; } if (puzzleEvent.GameObjectName == paperBridge.name) { Debug.Log("BridgeLevelManager: PAPER PuzzleSolved"); SetNextCheckPoint(paperCheckPoint); return; } SetNextCheckPoint(); }
public override void OnNext(EventPuzzle puzzleEvent) { base.OnNext(puzzleEvent); if (puzzleEvent.Status != PuzzleStatus.Solved) { return; } SetProductFoundMessage(puzzleEvent.GameObjectName); RegisterObjectAsSolved(puzzleEvent.GameObjectName); UpdateScorePanel(); CheckScore(); }
public override void OnNext(EventPuzzle puzzleEvent) { base.OnNext(puzzleEvent); if (puzzleEvent.Status != PuzzleStatus.Solved) { _isSolved = false; return; } if (_isSolved) { return; } OnPuzzleSolved(puzzleEvent); }