void Awake() { MaskGenerator maskGenerator = new MaskGenerator(); masks.AddRange(maskGenerator.Generate(filePathLeft, saveMask)); masks.AddRange(maskGenerator.Generate(filePathRight, saveMask)); Debug.Log("Invoking masks ready event."); masksReadyEvent.Invoke(masks); }
public void RegenerateSymmetricMask() { _generator.GeneratorBehaviour = new SymmetryGeneratorBehaviour(); var newMask = ToArrayMask(_generator.Generate()); for (var i = 0; i < SymmetricMask.Length; i++) { for (var j = 0; j < SymmetricMask[i].Length; j++) { SymmetricMask[i][j].Value = newMask[i][j].Value; } } }