What's the problem here?
using System.Collections; using System.Collections.Generic; using UnityEngine; class Player{ public Player(){ //code } } public class PlayerController{ public List<Player> PlayerList = new List<Player>(); } Error:
Inconsistent accessibility: field type 'List<Player>' is less accessible than field 'PlayerController.PlayerList' https://stackoverflow.com/questions/67294049/inconsistent-accessibility-field-type-less-accessible-than-field April 28, 2021 at 01:05PM
没有评论:
发表评论