Unity-Technologies / UnityPlayground

A collection of simple scripts to create 2D physics game, intended for giving workshops to a young audience
MIT License
856 stars 163 forks source link

Update CreateObjectAction.cs #13

Closed garlicsuter closed 6 years ago

garlicsuter commented 6 years ago

I just made the Vector3 a Vector2, and added a "relative" checkbox to the Inspector. I'm making a simple space game where a "boss" creates a boss bullet every second using the ConditionRepeat and CreateObjectAction scripts. Without the relative, a student can only enter world coords so the bullet doesn't appear from the parent/boss. Hope I did this request correctly. It's my first one ever! (HS tech teacher)

ciro-unity commented 6 years ago

Thanks for the suggestion, Mark! I made a small edit to make the position really relative!