Пример #1
0
    public void attack(AttackDTO dto)
    {
        PlayerCon obj    = models[dto.userID];
        PlayerCon target = models[dto.targetID];

        obj.attack(new Transform[] { target.transform });
    }
Пример #2
0
    private void atk(AttackDTO dto)
    {
        PlayerCon obj    = models[dto.userId];
        PlayerCon target = models[dto.targetId];

        obj.attack(new Transform[] { target.transform });
    }