예제 #1
0
    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);
    }
예제 #2
0
    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);
    }