Пример #1
0
 private bool onFriendNotInRoom(FriendsServiceEvents.FriendNotInRoom evt)
 {
     eventChannel.RemoveListener <FriendsServiceEvents.FriendLocationInRoomReceived>(onFriendLocationReceived);
     eventChannel.RemoveListener <FriendsServiceEvents.FriendNotInRoom>(onFriendNotInRoom);
     destroyAndCloseCellPhone();
     return(false);
 }
Пример #2
0
 private bool onFriendNotInRoom(FriendsServiceEvents.FriendNotInRoom evt)
 {
     Service.Get <EventDispatcher>().RemoveListener <FriendsServiceEvents.FriendLocationInRoomReceived>(onFriendLocationReceived);
     Service.Get <EventDispatcher>().RemoveListener <FriendsServiceEvents.FriendNotInRoom>(onFriendNotInRoom);
     if (!playerDataHandle.Handle.IsNull)
     {
         dataEntityCollection.RemoveComponent <SpawnAtPlayerData>(playerDataHandle.Handle);
     }
     spawnAtSceneLocation();
     return(false);
 }