Skip to content

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

+1
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

+2-1
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)