AztecGameLab / LongTermGame8

2 stars 1 forks source link

Added BreakableObject scripts #19

Closed Gatis1 closed 6 months ago

Gatis1 commented 6 months ago

Added two scripts: Scripts can be found in Assets->Scripts->Misc

Breaks.cs: appends to an object that breaks another object i.e. the boulder

Breakable.cs: appends to an object being broken. Requires the object that breaks it under the variable: "Boulder" to call values from Break.cs. The "broken" model must be added to the variable: "Broken" so it can be spawned on collision. Both variables can be found in the script inspector.