| 12345678910111213141516171819202122232425 |
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.EventSystems;
- namespace RPG_Fight_Test.Assets.Scripts.Creatures
- {
- public class Skeleton : Creature
- {
- private void Start()
- {
- Dex = Random.Range(0, 20);
- }
- public void decideActions(List<Creature> combatants)
- {
- List<Creature> closeEnemies = enemiesInSquareNextToCreature(this, combatants);
- Debug.Log("Number of close enemies " + closeEnemies.Count);
- if (closeEnemies.Count > 0)
- {
- setFirstAction(new AttackAction(closeEnemies[0]));
- }
- }
- }
- }
|