using System.Collections; using System.Collections.Generic; using UnityEngine; public class MovesDatabase : MonoBehaviour { public List movesDatabase = new List(); public static List currentMoveSetPlayer = new List(); public static List currentMoveSetEnemy = new List(); private PokemonEntity entity; private MoveSet moveSet; private void Start() { } private void Update() { if (PokemonEntity.playerTurn) { } else { moveSet = GameObject.Find("Enemy").GetComponent(); entity = GameObject.Find("Enemy").GetComponent(); } } /*void createMoveSet() { foreach (var entityMove in entity.Pokemon[0].moves) { int i = 0; foreach (var move in movesDatabase[i].name) { if (entityMove == move.ToString()) { moveSet.moveSet.Add(movesDatabase[i]); } } i++; } }*/ }