Пример #1
0
    public void Shoot(float rotationZ)
    {
        var shootData = new FiringJson(rotationZ, isHost, lobbyDataindex);
        var reqShoot  = JsonUtility.ToJson(shootData);

        m_socketIoComponent.Emit("fire", new JSONObject(reqShoot));
    }
Пример #2
0
    void OnOtherFiring(SocketIOEvent socketIOEvent)
    {
        var shootData = FiringJson.CreateFromJson(socketIOEvent.data.ToString());

        GameCore.gamemanager.OthetShoot(shootData.isHost, shootData.rotationZ);
    }