|
Post by Nguyen on Sept 25, 2014 4:07:41 GMT
Hi! First I want to thanks for a huge time saving plugin! Now I have problem with Custom Start Wave in Level Wave Settings (last updated version) For short: -I have 2 levels!
-I enable Custom Start Wave? check box
-then hard input variable to change level (level 2 - wave 1)
-but when I start game it does not seem to be working!
Last one is about LevelSettings.WarpToLevel() method. I put it in Awake() but it also does not work as expected ! Did i do anything wrong or missing something essential ?
|
|
|
Post by DarkTonic Dev on Sept 25, 2014 10:13:20 GMT
Thank you very much.
I tried the same in my example scene 1 (TimedAndEliminationWaves) and it worked fine, after I added a level 2 with a first wave and made sure the wave has at least 1 spawner that it set up to spawn something from Level 2, Wave 1. Make sure you're done all that.
Did you get any errors logged in the console? You might not have set up your prefabs in Pool Boss for instance. I suspect there is at least one red error in the console. The same error will appear if you call WarpToLevel from code.
|
|
|
Post by Nguyen on Sept 25, 2014 10:42:09 GMT
Thanks ! I figured it out, It is totally my problem. One more question about Level Settings. If I want to trigger game over in specific way, what should I do ? Example: -I have Level 1 with 2 waves, and level 2 with 2 waves. -When player finished level 1 - wave 2. I want to trigger game over -How do I know when this way is completely cleared ?
|
|
|
Post by DarkTonic Dev on Sept 25, 2014 11:44:26 GMT
You call LevelSettings.IsGameOver = true at the point you want the game to be over.
You can use LevelSettingsListener.cs to do this, with the event WaveEnded, which happens whenever a wave is complete. Then check the wave and level number and call the code above.
|
|
|
Post by Nguyen on Sept 26, 2014 1:42:18 GMT
Thanks you so much! Really helpful
|
|
|
Post by DarkTonic Dev on Sept 26, 2014 1:49:55 GMT
Glad to hear it.
|
|