Question by
aleksanrt7217 · Jul 05, 2021 at 10:42 AM ·
eventspriterenderertoggle
UnityEvent toggle boolean
Hello, I've created a kinematic enemy which goes left and right. Once it reaches edge of platform it changes direction and should flip its sprite on X-axis. I've made this using UnityEvents. My question is, is it possible to have SpriteRenderer.flipX toggle instead of just stay checked once the event is invoked?
Thank you.
capture.png
(12.2 kB)
Comment
Your answer
