Hi,
I have two scripts on the same gameobject.
One script does some stuff, and then I am trying to send that stuff to the other script also on the same gameobject.
It was my understanding that a Message would be the best solution. I have implemented an interface etc, but when I try to execute the message, I get an error saying I cant access the GameObject.
ExecuteEvents.Execute<INewMessage>(this.CurrentGameObject, null, (x, y) => x.SetNewCollection(PC));
I have a public GameObject variable declared and drag the gameobject to it in the editor. Can someone please let me know how to specify the target, if indeed I should be using the GameObject in this way.
Thanks,