Beispiel #1
0
    public void SpawnDisaster(Vector3 spawnPosition)
    {
        int        i        = Random.Range(0, disasters.Length);
        GameObject instance = Instantiate(disasters[i], spawnPosition, Quaternion.identity, transform);
        Disaster   disaster = instance.GetComponent <Disaster>();

        disaster.InitMap(hexMap);
    }