private bool onFriendNotInRoom(FriendsServiceEvents.FriendNotInRoom evt) { eventChannel.RemoveListener <FriendsServiceEvents.FriendLocationInRoomReceived>(onFriendLocationReceived); eventChannel.RemoveListener <FriendsServiceEvents.FriendNotInRoom>(onFriendNotInRoom); destroyAndCloseCellPhone(); return(false); }
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); }