Example #1
0
        /// <summary>
        /// Reset by fetching the algorithm again.
        /// </summary>
        public override void ResetDelegate()
        {
            base.ResetDelegate();

            if (algorithm == null && !gettingDestroyed)
            {
                algorithm = GetComponent <GridGeneratorAlgorithm> ();
            }
        }
Example #2
0
 /// <summary>
 /// Sets the algorithm, to be called by the GridGeneratorAlgorithm.
 /// </summary>
 public void _SetAlgorithm(GridGeneratorAlgorithm algorithm)
 {
     this.algorithm = algorithm;
 }