示例#1
0
    public override EnemyIntent GetIntent()
    {
        EnemyIntent intent = base.GetIntent();

        intent.Value = _damage;
        return(intent);
    }
示例#2
0
    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);
        }
    }
示例#3
0
 public void Intend()
 {
     enemyIntent = GenerateIntent();
 }