Пример #1
0
        public void Initialize(CellItemInfo info)
        {
            Initialize();

            _info = info;

            CellId.Value    = ++_cellId;
            View.Value      = _info.View.Spawn();
            Behaviour.Value = _info.Behaviour;
        }
Пример #2
0
        public override void Release()
        {
            _info        = null;
            Id.Value     = 0;
            Column.Value = 0;
            Row.Value    = 0;
            Fixed.Value  = false;
            View.Value?.Despawn();
            View.Value   = null;
            CellId.Value = 0;

            base.Release();
        }