public void CreateContextAndShowProfileScreen(ShowProfileScreenEvent e, Node any, [JoinAll] SelfUserNode selfUser)
        {
            Entity context = base.CreateEntity("ProfileScreenContext_userId : " + e.UserId);

            context.AddComponent(new ProfileScreenContextComponent(e.UserId));
            ShowScreenDownEvent <ProfileScreenComponent> eventInstance = new ShowScreenDownEvent <ProfileScreenComponent>();

            eventInstance.SetContext(context, true);
            base.ScheduleEvent(eventInstance, EngineService.EntityStub);
        }
Exemple #2
0
 public void HideScreen(ShowProfileScreenEvent e, Node any, [JoinAll] SingleNode <FriendsScreenComponent> friendsScreen)
 {
     friendsScreen.component.Hide();
 }