public EnemyMove(Enemy host, IType.MoveType type, float energy, IType.ElementType element) { user = host; moveType = type; energyCost = energy; moveElement = element; player = GameObject.Find("Player").GetComponent <PlayerManager>(); damageScale = 1; }
//Check if the second buff is compatiable with the first buff and set the type private bool CheckBuffCombination(IType.BuffType[] list, IType.MoveType outcome) { bool canFind = false; if (buffs[0] != null && buffs[1] != null && list != null) { for (int i = 0; i < list.Length; i++) { if (list[i] == (IType.BuffType)buffs[1].GetBuffID()) { currentType = outcome; canFind = true; break; } } } return(canFind); }