public override EnemyIntent GetIntent() { EnemyIntent intent = base.GetIntent(); intent.Value = _damage; return(intent); }
void UpdateIntent() { EnemyIntent intent = _enemyAI.NextAction.GetIntent(); _intentIcon.sprite = intent.Icon; _intentIcon.color = intent.Color; if (intent.Value > 0) { _intentTextValue.text = intent.Value.ToString(); } else { _intentTextValue.text = ""; } foreach (Transform child in _damageMarkerParent.transform) { Destroy(child.gameObject); } foreach (Vector3 pos in intent.Positions) { Instantiate(_damageMarkerPrefab, pos, Quaternion.identity, _damageMarkerParent.transform); } }
public void Intend() { enemyIntent = GenerateIntent(); }