Hello All,
Instead of sending a string, int, float, etc etc… I would like to send a base object type.
class MessageType
{
public short MessageID = 111;
}
class Message : Messagebase
{
string fooString;
object fooObject;
}
public void WriteMessage (string Str, object Obj)
{
Message MSG = new Message ();
MSG.fooString = Str;
MSG.fooObject = Obj;
//Retrieve Your UNET Client and Send
myclient.Send (MessageType.MessageID, MSG);
}
After trying this the string was received but not the object.
Any advice?
Sean