Пример #1
0
        /// <summary>
        ///
        /// </summary>
        void Start()
        {
            // TODO
            // bug with MaterialPropertyBlock
            // Cells default to blue

            _manager       = GetComponent <StackManager>();
            _materialprops = new MaterialPropertyBlock();

            // assign material to cells
            foreach (var layer in _manager.Layers)
            {
                foreach (var cell in layer.Cells)
                {
                    cell.Renderer.sharedMaterial = _material;
                }
            }

            // default mode
            DisplayAlive();
        }
 /// <summary>
 ///
 /// </summary>
 private void Start()
 {
     _manager = GetComponent <StackManager>();
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="manager"></param>
 public StackAnalyser(StackManager manager)
 {
     _layers = manager.Layers;
 }