How to Share Reference Data Between Screens and Entities
Introduction
A common scenario
Sharing the list - a step by step walk-through
1. Create a public PositionedObjectList<Player> property in the Enemy custom code (not through Glue)
2. Assign this property in the Screen class whenever a new Enemy is created
3. Use this property in your AI logic in Enemy.cs
Last updated
Was this helpful?