I need to move a game object from a class which is not a “MonoBehaviour” class. In my code what i do is first initiate the object in the main (monoBehavior) class and then pass that GameObject into my general class. Inside my general class im getting some data from a network connection. I need to move my object using those data come from network. But it didnt work.
iTween.MoveTo(point,iTween.Hash("x",System.Convert.ToInt32(msg),"time",1));
Any suggestions.