public void Initialize(int index, Fighter persistentFighter)
    {
        this.targetId          = persistentFighter.index;
        this.Name              = persistentFighter.Name;
        this.persistentFighter = persistentFighter;
        this.stats             = persistentFighter.stats;
        this._queuedAction     = new QueuedAction(this);

        _ai             = new FightingEntityAI(this);
        this.targetName = GameManager.Instance.battleComponents.field.GetTargetNameFromIndex(index);
    }
Exemple #2
0
 void Start()
 {
     _ai = new FightingEntityAI(this, 100f, 0.5f);
     StartCoroutine(Attack());
 }