Posted March 08, 2023 by blueglue
Date: 8.3. 2023
Activity: Scripting tutorials.
Notes: When I changed a ScriptableObject - renamed a variable - the change did not register in the editor for a while.
Instead of calling columnParts.Break in the column Damageable script, I needed to call columnParts.ScatterParts.Break (ScatterParts is a script of the broken column object).
When applying forces to the column parts, I had to convert child.position to Vector2 explicitly before subtracting the point of impact from it, which wasn't mentioned in the tutorial.
Invested hours: 1:30
Outcome: Completed scripting tutorials 1 & 2.