using System.Collections; using System.Collections.Generic; using UnityEngine; public class TypeDatabase : MonoBehaviour { public List typeDatabase = new List(); public PokemonEntity entity; private void Start() { } private void Update() { if (PokemonEntity.playerTurn) { // entity = GameObject.Find("Enemy").GetComponent(); } else { } } void typeEffect() { foreach(var type in entity.Pokemon[0].types) { foreach (var weakAgainst in type) { if (true) { } } } } }