Exemplo n.º 1
0
    public void spawnRaven()
    {
        Vector3 pos = spawningPoint.transform.position;

        pos += spawningPoint.transform.right * Random.Range(-vectorVar, vectorVar);

        pos += spawningPoint.transform.up * Random.Range(0.0f, vectorVar / 5.0f);

        Raven newRaven = prefabBank.poolRaven();

        newRaven.gameObject.transform.position = pos;
        ravens.Add(newRaven);
        newRaven.init();
    }