WaveSpawner Rotation Problem

Updated on May 15, 2017 in [A] Brackeys Courses
Share on Facebook0Tweet about this on Twitter0Share on Google+0Share on Reddit0
0 on May 15, 2017
Hey guys, I am trying to make a Tower Defense Game and I made a wave spawner but that wave spawner spawn my enemies like itself rotation so my enemies has to spawn like this:
but they spawn like this:
the rotation code was this:
void SpawnEnemy (GameObject enemy)
    {
        Instantiate(enemy, spawnPoint.position, spawnPoint.rotation);
    }
I tried “Quaternion.Euler(-90, 90, 0)” and “Quaternion.identity” codes for fix this problem but some enemies are fixed some arent fixed I want that rotation like enemies rotation and I have 12 different enemies how can I do that?
PS: Sorry for my English
  • Liked by
Reply