> For the complete documentation index, see [llms.txt](https://obvious-game.gitbook.io/soap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://obvious-game.gitbook.io/soap/scene-documentation/6_scriptableenums/scene-setup.md).

# Scene Setup

6\_ScriptableEnums

In this scene, you will find four GameObjects named "Element." Each Element has an Element.cs component attached to it, which references a different Scriptable Enum (SE). If you select the first one, you will see that it references the Fire SE as its ElementType.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXe2ppm_-m6zNlTqGOZuxC-_3KDJxvxmxkXPvfIJYRom8ffvDpCvR5dJViPcicHrMWBp4zwvvPI97qKT-sYOWLQbsIJ-K60baqjXdqmpbUBFZQtoRTUD9Pei50JzYBMciMwNK_JoFzuzNC8Zb7r-4mFPyXuK?key=UChIagxDpqw4n759IC048Q)

If you click on this SE, you will see that it contains additional data: a color field and a list (Defeats) of ScriptableObjects. The latter list contains other Scriptable Enums that this element destroys.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcXyoh9bNCSuRA7yu_8A0dv2JKPt1m3r1rQnDSEAyx1Yz8n2m1n8sOJkvERKx1zSc7u17DWRc4wcQ8KabLjBbmTkJOxnolYBqu8W-2mTzbuc8-INnxzppSTyCqEKQLjaa9mRFAfx_PLu95Vwz9AC2In2O4?key=UChIagxDpqw4n759IC048Q)

If you play the game, use WASD to move the fire element and try to collide with the other elements. As indicated in the Defeats list, if you collide with Earth, you will destroy that element. However, if you collide with Water, the fire element will be destroyed. The current data is set up as follows:

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXd1wmWjQY_tVuwbRpOy9OcSBsFgngjOivNDO5PEdoSmCpDdCdXDcX4-9OTYgyNi8V-KdZtpZ9FfV3TXAGDe-QexRy9GBhWfoTA8w4J2KuE05WV85pX7orTyTEI5BAXdhY5dVjb1H7LUYYhF2XxzKYSRznu3?key=UChIagxDpqw4n759IC048Q)
