public void OnballPositionReset(SocketIOEvent e) { string data = e.data.ToString(); BallJSON user = BallJSON.CreateFromJSON(data); gameMangerOBJ.GetComponent <GameManger>().Ball.transform.position = new Vector3(user.x, user.y, user.z); }
public void OnUpdataBallPosition(SocketIOEvent e) { string data = e.data.ToString(); BallJSON user = BallJSON.CreateFromJSON(data); gameMangerOBJ.GetComponent <GameManger>().Ball.GetComponent <Ball>().Dir = new Vector3(user.Dir_X, user.Dir_Y, user.Dir_Z); }