using System.Collections; using System.Collections.Generic; using UnityEngine; public class Victory : MonoBehaviour { private List info; public TileOwner owner; private void Awake() { info = new List( FindObjectsOfType()); for (int i = 0; i < info.Count; i++) { info[i].GetComponent().tileOwnerIndex = owner; //if(GetComponent().tileOwnerIndex != owner) //GetComponent().tileOwnerIndex = owner; //info.Add(tile); } } private void Update() { } }