Ejemplo n.º 1
0
        //TODO OldSceneNameContext (the scene we want to stop observing)
        public override void Process(NetMessage msg)
        {
            var sceneContext = SceneManager.GetSceneByName(msg.NewSceneNameContext);

            if (!sceneContext.IsValid())
            {
                Logger.LogError("No scene was found for Observer refresh!!", Category.Connections);
                return;
            }

            SubSceneManager.ProcessObserverRefreshReq(SentByPlayer, sceneContext);
        }
Ejemplo n.º 2
0
    //TODO OldSceneNameContext (the scene we want to stop observing)

    public override void Process()
    {
        var sceneContext = SceneManager.GetSceneByName(NewSceneNameContext);

        if (!sceneContext.IsValid())
        {
            Logger.LogError("No scene was found for Observer refresh!!");
            return;
        }

        SubSceneManager.ProcessObserverRefreshReq(SentByPlayer, sceneContext);
    }