Trying to add two player (objects) to a plane, but I keep getting these errors:
Assets/Scripts/GameManager.cs(46,25): error CS1502: The best overloaded method match for `System.Collections.Generic.List.Add(Player)' has some invalid arguments
Assets/Scripts/GameManager.cs(46,25): error CS1503: Argument `#1' cannot convert `UserPlayer' expression to type `Player'
and it's the same for 50,25.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class GameManager : MonoBehaviour {
public GameObject TilePrefab;
public GameObject UserPlayerPrefab;
public int mapSize = 12;
List
- > map = new List
- >();
List
- > ();
for (int i = 0; i < mapSize; i++) {
List