Generation

generate functionSun, 09 Jul 2023

comando para coger un objeto haciendolo desaparecer tras una animacion

if (collision.gameObject.tag == "Player") { collision.gameObject.GetComponent<PlayerController>().AddScore(score); collision.gameObject.GetComponent<PlayerController>().AddHealth(health); Destroy(gameObject, destroyTime); } else { Destroy(gameObject, destroyTime); }

Want to kickstart your project?Use the new AI Studio to create your code