diff --git a/Assets/Scripts/IllusionPatternLoader.cs b/Assets/Scripts/IllusionPatternLoader.cs index 30e9ba63..ad3cfb64 100644 --- a/Assets/Scripts/IllusionPatternLoader.cs +++ b/Assets/Scripts/IllusionPatternLoader.cs @@ -9,7 +9,9 @@ public class IllusionPatternLoader : MonoBehaviour void Start() { + abstractIllusionPattern ouchi = new ouchi(); + allPatterns.Add(ouchi); } diff --git a/Assets/Scripts/ouchi.cs b/Assets/Scripts/ouchi.cs index 9e2babf5..8a0574de 100644 --- a/Assets/Scripts/ouchi.cs +++ b/Assets/Scripts/ouchi.cs @@ -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; }