Skip to content
Snippets Groups Projects
Commit 22e60ff7 authored by mariuskern's avatar mariuskern
Browse files

doc

parent d7e9ce1e
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ In all Array-like structures, always add your facts at the bottom. ...@@ -57,7 +57,7 @@ In all Array-like structures, always add your facts at the bottom.
2. Create a spawn method for your fact. 2. Create a spawn method for your fact.
3. In SpawnFactRepresentation add your Fact to the switch-case statement 3. In SpawnFactRepresentation add your Fact to the switch-case statement
5. In the Unity Editor in Assets\Ressources\Prefabs\Facts create the prefab for your Fact. 5. In the Unity Editor in Assets\Ressources\Prefabs\Facts create the prefab for your Fact.
6. Connect your Prefab to the FactSpawner class 6. Connect your Prefab to the FactSpawner class
...@@ -67,6 +67,15 @@ In all Array-like structures, always add your facts at the bottom. ...@@ -67,6 +67,15 @@ In all Array-like structures, always add your facts at the bottom.
4. In Hirarchy select WorldCursor and add your Fact Prefab into the Inspector. 4. In Hirarchy select WorldCursor and add your Fact Prefab into the Inspector.
5. Alternative to 6.2 & 6.3: in hirarchy search: "ref:Assets/Scripts/InteractionEngine/FactHandling/FactSpawner.cs" 5. Alternative to 6.2 & 6.3: in hirarchy search: "ref:Assets/Scripts/InteractionEngine/FactHandling/FactSpawner.cs"
7. Add the Layer of your fact to the LayerMask in WorldFactInteraction
1. Open Assets\Scenes\Worlds\RiverWorld.
2. In the Unity Project Tab goto folder Assets\Scripts\InteractionEngine\
3. Rightclick WorldFactInteraction.cs and select "Find References In Scene"
4. In Hirarchy select MathMenue1_Canvas_0 and add your Fact Layer into the Fact Layer Maks of World Fact Interaction
4. In Hirarchy select HidingCanvas and add your Fact Layer into the Fact Layer Maks of World Fact Interaction
5. Alternative to 6.2 & 6.3: in hirarchy search: "ref:Assets/Scripts/InteractionEngine/WorldFactInteraction.cs"
7. Create an Icon for your Fact 7. Create an Icon for your Fact
1. Create an Icon-image 1. Create an Icon-image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment