Esempio n. 1
0
    public IEnumerator SpawnDelay()
    {
        Player myplayerScript = myPlayer.GetComponent <Player>();

        yield return(new WaitForSeconds(0.5f));

        PM.SetPlayerPetGroup();

        if (JM.jobCode == 1)
        {
            for (int i = 0; i < JM.starterPetAmountB; i++)
            {
                OP.PoolInstantiate("Pet", myPlayer.transform.position, Quaternion.identity, -3, 0, -1, 0, true);
            }
        }
    }