Skip to content

Commit

Permalink
update ouchi pattern to fit abstract class
Browse files Browse the repository at this point in the history
  • Loading branch information
syKevinPeng committed Apr 30, 2024
1 parent ce5e379 commit 9c69e8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Assets/Scripts/IllusionPatternLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ public class IllusionPatternLoader : MonoBehaviour

void Start()
{
abstractIllusionPattern ouchi = new ouchi();

allPatterns.Add(ouchi);

}

Expand Down
5 changes: 2 additions & 3 deletions Assets/Scripts/ouchi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ public class ouchi : abstractIllusionPattern
private int CurrentPatternWidth;

//constructor
public ouchi(GameObject RawImage)
public ouchi()
{
this.RawImage = RawImage;
Debug.Log("========== Ouchi Start ==========");
GeneratePattern(InitPatternHeight, InitPatternWidth);
texture = GeneratePattern(InitPatternHeight, InitPatternWidth);
CurrentPatternHeight = InitPatternHeight;
CurrentPatternWidth = InitPatternWidth;
}
Expand Down

0 comments on commit 9c69e8a

Please sign in to comment.