public override void Execute(CellInitParameters parameter) { DeleteContentFromCell(parameter.ZelleCopy); if (parameter.PoolData.Length < 0) { return; } ContentCreationConfig prefab = GetRandomPoolContent(parameter); if (prefab == null) { return; } Vector3 position = parameter.CellPosition; ZellInhaltComponent prefabCopy = Object.Instantiate(prefab.contentTypePrefab, position, Quaternion.identity, parameter.ZelleCopy.transform); prefabCopy.Cell = parameter.ZelleCopy; parameter.TriggerContentCreatedInCell(prefabCopy); }
private void OnCellContentCreated(ZellInhaltComponent content) { Debug.Log($"Content erstellt in Zelle {content.Cell.Index}"); }
private void EvaluateMatchOfCellContentInCell(ZellInhaltComponent contentInCellNotMoving) { // TODO - test match! }