public void attack(AttackDTO dto) { PlayerCon obj = models[dto.userID]; PlayerCon target = models[dto.targetID]; obj.attack(new Transform[] { target.transform }); }
private void atk(AttackDTO dto) { PlayerCon obj = models[dto.userId]; PlayerCon target = models[dto.targetId]; obj.attack(new Transform[] { target.transform }); }