Пример #1
0
    public override void Death()
    {
        for (int i = 0; i < Tactical_Head.GetPlayerCount(); i++)
        {
            Unit_Manager Enemy = Tactical_Head.GetPlayer(i);
            if (Mathf.Abs(x - Enemy.x) <= 3 && Mathf.Abs(y - Enemy.y) <= 3)
            {
                Enemy.pressure -= 10;
            }
        }

        for (int i = 0; i < Tactical_Head.GetEnemyCount(); i++)
        {
            Unit_Manager Team = Tactical_Head.GetEnemy(i);
            if (Mathf.Abs(x - Team.x) <= 1 && Mathf.Abs(y - Team.y) <= 1)
            {
                Team.pressure += 30;
            }
        }

        _Input.EnemyView -= Sight;
        SEE_ALL          -= Seek;

        Tactical_Head.DeleteEnemy(this);
        base.Death();
    }
Пример #2
0
    public override void Death()
    {
        for (int i = 0; i < Tactical_Head.GetPlayerCount(); i++)
        {
            Unit_Manager Team = Tactical_Head.GetPlayer(i);
            if (Mathf.Abs(x - Team.x) <= 1 && Mathf.Abs(y - Team.y) <= 1)
            {
                Team.pressure += 30;
            }
        }

        for (int i = 0; i < Tactical_Head.GetEnemyCount(); i++)
        {
            Unit_Manager Enemy = Tactical_Head.GetEnemy(i);
            if (Mathf.Abs(x - Enemy.x) <= 3 && Mathf.Abs(y - Enemy.y) <= 3)
            {
                Enemy.pressure -= 10;
            }
        }
        base.Death();
    }