public void Initialize(CellItemInfo info) { Initialize(); _info = info; CellId.Value = ++_cellId; View.Value = _info.View.Spawn(); Behaviour.Value = _info.Behaviour; }
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(); }