Пример #1
0
    public void Reset()
    {
        for (int i = 0; i < transform.childCount; i++)
        {
            Destroy(transform.GetChild(i).gameObject);
        }

        foreach (Vector3 platformPosition in platformsStartingPos)
        {
            Instantiate(startingPrefab, platformPosition, Quaternion.identity, transform);
        }

        spawner.Initialise();
    }