Ejemplo n.º 1
0
    // Start is called before the first frame update

    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.layer == 13)
        {
            spawnItems = GameObject.FindGameObjectWithTag("Game Manager").GetComponent <SpawnItems>();
            spawnItems.SpawnOne((GameObject)Resources.Load(gameObject.name));
        }
    }