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);
    }
Exemple #2
0
 private void OnCellContentCreated(ZellInhaltComponent content)
 {
     Debug.Log($"Content erstellt in Zelle {content.Cell.Index}");
 }
Exemple #3
0
 private void EvaluateMatchOfCellContentInCell(ZellInhaltComponent contentInCellNotMoving)
 {
     // TODO - test match!
 }