- Home /
Question by
Narmer · Mar 05, 2014 at 08:55 AM ·
animationeventanimationeventother script
Animation Event Remote Procedure Call
I have a main script running (attached to the Main Camera), using GUI and starting animation (which is part of another game object).
In this animation I want to have events which should call some function in the same script.
But when I am trying to do that.. there is just no function to choose from. It can be done only when the script is attached to a game object with that animation. The problem is that I need to read and change some variables from the main script while the animation is running.
What solution would you recommend me? Should I call other script which can somehow get variables from the main script or there is other way how to do that?
Comment