public override void DTRMUpdate() { List <Visible> myNewCell = VisibleGrid.GetCell(myPosition.position); if (myCell == myNewCell) { return; } if (myCell != null) { myCell.Remove(this); } myNewCell.Add(this); myCell = myNewCell; }
public override void DTRMStart() { visible = visibleOnStart; myCell = VisibleGrid.GetCell(myPosition.position); myCell.Add(this); }