/// <summary> /// Reset by fetching the algorithm again. /// </summary> public override void ResetDelegate() { base.ResetDelegate(); if (algorithm == null && !gettingDestroyed) { algorithm = GetComponent <GridGeneratorAlgorithm> (); } }
/// <summary> /// Sets the algorithm, to be called by the GridGeneratorAlgorithm. /// </summary> public void _SetAlgorithm(GridGeneratorAlgorithm algorithm) { this.algorithm = algorithm; }