private void SpawnDeathParticles() { //GameObject deathParticles = Resources.Load(pathToObject) as GameObject; GameObject deathParticles = ResourcesLoader.LoadGameObject(pathToObject); Instantiate(deathParticles, transform.position, Quaternion.LookRotation(Vector3.up)); }