Exercise
6_ScriptableEnums
Last updated
6_ScriptableEnums
Last updated
Take a few minutes to modify the data of the different elements. They are located in the Examples folder.
Feel free to change the default rules of "Defeats." After experimenting, we will create a new element: Darkness!
Let's duplicate an existing SE in the project folder, rename it to "Darkness," change its color to black, and add all the element types to its Defeat list. Yes, Darkness can even defeat itself!
Now, let’s duplicate an existing Element in the scene, move it somewhere in the scene and assign the Darkness type.
Press play, select that Element in the scene, and then move it around manually onto the different Elements. Admire as it destroys everything!