> 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/7_scriptablesubassets/scene-setup.md).

# Scene Setup

7\_ScriptableSubAssets

This scene is similar to the 1\_ScriptableVariables\_Example\_Scene, with the difference that we are using sub-assets. In the project window, there are two different scriptable objects wrappers: PlayerEvents and PlayerStats.&#x20;

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcK5XPU3U9QRZHuyz_BlvVFDVMpN5nrifpWDcYn6cw9Y3R9rk_fMMwTYZoKQ1CfOTYXgGhPNP_Dvyeq0ij9oDjJAJt6fBoPytdjLA-hhis_GnKln3ZxISs95XYT5gpjA4nSdlXF_04ddXmNretGbap_fEnt?key=IDL7BEtHVD1t5qGtDI6IRQ)

PlayerEvents contains all the events related to the player as sub-assets (OnDamaged, OnHealed, OnDeath).

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcFxoCUlOgTH-mKr3RN7eGV-Jzgdouf8nKn5oTVzvNEz13LVjyMduA-i-DpSgkiu-jG2U-f6_W60_7b1NtGPfLyP3Cta-Yptrw0EUNeKAQ8mk8l9BzeNFAuwq1tmyAiWeHQ4-N8wNu9Z_WGYhmCFL_YSpC-?key=IDL7BEtHVD1t5qGtDI6IRQ)

PlayerStats contains all stats related to the player as sub-assets (speed, health, max health).

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdyvy7zFeQ03nS1h74SMGTOJdJMf6vCKxcfqXEtHdsAN-83iJDxb7XnuJbJkETDT3z-Hm-qil16VcRaEHGlq5iVWRrdOByLZg8WxTZ6Cta8zZjRYtKoo9G_R6_tbOWgcmx0uv0j2sHJX6odZUABOpbu0JU?key=IDL7BEtHVD1t5qGtDI6IRQ)
