Example #1
0
    // ネットワーク関連イベント受信用
    public void OnNotify(Observable <NetworkEvent> observer, NetworkEvent e)
    {
        NetworkEventDispatcher dispatcher = new NetworkEventDispatcher(e);

        dispatcher.Dispatch <HostChengedEvent>(OnChangedHost);
        dispatcher.Dispatch <OtherPlayerDisconnectedEvent>(OnDisconnectOtherPlayer);
    }
Example #2
0
    // ネットワーク関連のイベント受信
    public void OnNotify(Observable <NetworkEvent> observer, NetworkEvent notifyObject)
    {
        NetworkEventDispatcher dispatcher = new NetworkEventDispatcher(notifyObject);

        dispatcher.Dispatch <LeftRoomEvent>((e) => { LoadOutGameScene(); return(false); });
    }