Refactored locks for rooms to be more versatile by giving them their own type.
This commit is contained in:
parent
7bec7c539d
commit
d79d6216f0
13 changed files with 85 additions and 53 deletions
|
|
@ -0,0 +1,15 @@
|
|||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
|
||||
public class MatchingDiceLock : Lock
|
||||
{
|
||||
public override bool CheckIfKeyFits(DicePair dicePair)
|
||||
{
|
||||
if (dicePair.CheckIfResultsMatch())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue