This might seem a noob question to ask but I am using gamespark with unity. I am sending vector2 in the pack like this:
data.SetVector2(1, new Vector2(1.0f, 1.0f, 1.0f));
and I get it from the packet like:
Vector2 a = _packet.Data.GetVector2 (1);
But I am getting the following error: Cannot implicitly convert type UnityEngine.Vector2? to UnityEngine.Vector2.
new Vector2(1.0f, 1.0f, 1.0f)why are you passing 3 parameters to a Vector2 which can only store 2 values?