Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

error CS0111: with the same parameter types

$
0
0
Hi everyone, I am making a multipleyer system and when I declare the public override void function `OnRoomListUpdate (List roomList)` I'm having an error. Type 'MonoBehaviourPunCallbacks' already defines a member called 'OnRoomListUpdate' with the same parameter types I created a script called RoomListingsMenu and the problem is in the PunClasses script. How to fix this error? RoomListingsMenu using Photon.Pun; using Photon.Realtime; using System.Collections; using System.Collections.Generic; using UnityEngine; public class RoomListingsMenu : MonoBehaviourPunCallbacks { [SerializeField] private Transform _content; [SerializeField] private RoomListing _roomListing; public override void OnRoomListUpdate(List roomList) { foreach(RoomInfo info in roomList) { RoomListing listing = Instantiate(_roomListing, _content); if (listing != null) listing.SetRoomInfo(info); } } } PunClasses error public void OnRoomListUpdate(List roomList) { throw new NotImplementedException(); }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>