hatfield-c / rotkr

Rats! Of the Kar Re-Bein by Katin Games
0 stars 0 forks source link

[ROTKR-56] Rats will spawn on the ship in the game #56

Closed KevinDCo closed 4 years ago

KevinDCo commented 4 years ago

Rats will spawn on the ship when we enter a wye.

KevinDCo commented 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.

hatfield-c commented 4 years ago

@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.

hatfield-c commented 4 years ago

@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

KevinDCo commented 4 years ago

This issue is ready for QA

hatfield-c commented 4 years ago

This issue has passed QA.