Closed KevinDCo closed 4 years ago
@hatfield-c There's some conflict with the current state of the logic made in #47 . I don't want to re-open the issue, rather let's collaborate here to move forward and refine some functionality so these rats can be spawned in dynamically.
@KevinDCo I came here to comment on that actually. The rat needs some initial configurations passed to it when it is instantiated - such as the ship gameobject it is assigned to - and as such, this will need to be taken into account when spawning rats.
@KevinDCo I came here to comment on that actually. The rat needs some initial configurations passed to it when it is instantiated - such as the ship gameobject it is assigned to - and as such, this will need to be taken into account when spawning rats.
To address this, I've created a class called ShipReferences.cs, which the ShipManager.cs class creates and returns via the ShipManager.GetShipReferences() function. When you create the ShipManager class, call this function to get its references, and then pass the references class to the RatStateManager.cs class's Init() function
This issue is ready for QA
This issue has passed QA.
Rats will spawn on the ship when we enter a wye.