Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 33d4324

Browse files
committed
Realized I accidentally also added the Adapter pattern in the Facade pattern example, so added comments to recognize that
1 parent d429efa commit 33d4324

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎Assets/Patterns/22. Facade/Random numbers/Facade/RandomNumberGenerators/IRandomNumberGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Facade.RandomNumbers
66
{
7+
//This is the Adapter pattern to easier work with the Facade
78
public interface IRandomNumberGenerator
89
{
910
public void InitSeed(int seed);

‎Assets/Patterns/22. Facade/Random numbers/RandomNumbersController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
using UnityEngine;
44
using Facade.RandomNumbers;
55

6-
//Example of the Facade programming pattern (and possibly Adapter because they are very similar)
6+
//Example of the Facade programming pattern
7+
//To implement the Facade I had to use the Adapter pattern, so you get that as well as a bonus
78
public class RandomNumbersController : MonoBehaviour
89
{
910
private void Start()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /